Package org.springframework.web.context
Interface ServletConfigAware
- All Superinterfaces:
org.springframework.beans.factory.Aware
public interface ServletConfigAware
extends org.springframework.beans.factory.Aware
Interface to be implemented by any object that wishes to be notified of the
ServletConfig (typically determined by the WebApplicationContext)
that it runs in.
Note: Only satisfied if actually running within a Servlet-specific WebApplicationContext. Otherwise, no ServletConfig will be set.
- Since:
- 2.0
- Author:
- Juergen Hoeller, Chris Beams
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetServletConfig(ServletConfig servletConfig) Set theServletConfigthat this object runs in.
-
Method Details
-
setServletConfig
Set theServletConfigthat this object runs in.Invoked after population of normal bean properties but before an init callback like InitializingBean's
afterPropertiesSetor a custom init-method. Invoked after ApplicationContextAware'ssetApplicationContext.- Parameters:
servletConfig- theServletConfigto be used by this object- See Also:
-
InitializingBean.afterPropertiesSet()ApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)
-