接口 ServletContextAware

所有超级接口:
cn.taketoday.beans.factory.Aware
所有已知实现类:
ApplicationContextHeaderFilter, CharacterEncodingFilter, CorsFilter, DefaultServletHttpRequestHandler, DelegatingFilterProxy, FormContentFilter, ForwardedHeaderFilter, GenericFilterBean, HiddenHttpMethodFilter, InternalResourceView, JstlView, OncePerRequestFilter, OrderedFormContentFilter, OrderedHiddenHttpMethodFilter, RelativeRedirectFilter, ServletContextAttributeExporter, ServletContextAttributeFactoryBean, ServletContextParameterFactoryBean, ServletForwardingController, ServletViewResolverComposite, ServletWrappingController, ShallowEtagHeaderFilter, WebApplicationObjectSupport

public interface ServletContextAware extends cn.taketoday.beans.factory.Aware
Interface to be implemented by any object that wishes to be notified of the ServletContext (typically determined by the WebApplicationContext) that it runs in.
从以下版本开始:
2018-08-03 15:45
作者:
Harry Yang
  • 方法详细资料

    • setServletContext

      void setServletContext(ServletContext servletContext)
      Set the ServletContext that this object runs in.

      Invoked after population of normal bean properties but before an init callback like InitializingBean's afterPropertiesSet or a custom init-method. Invoked after ApplicationContextAware's setApplicationContext.

      参数:
      servletContext - the ServletContext object to be used by this object
      另请参阅:
      • InitializingBean.afterPropertiesSet()
      • ApplicationContextAware.setApplicationContext(cn.taketoday.context.ApplicationContext)