Top Description Methods
org.springframework.web.context

public Interface ServletConfigAware

extends Aware
Imports
jakarta.servlet.ServletConfig, 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.

Authors
Juergen Hoeller, Chris Beams
Since
2.0
See Also
ServletContextAware

Method Summary

Modifier and TypeMethod and Description
public void
setServletConfig(ServletConfig
the ServletConfig to be used by this object
servletConfig
)

Set the ServletConfig 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.

Method Detail

setServletConfigback to summary
public void setServletConfig(ServletConfig servletConfig)

Set the ServletConfig 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.

Parameters
servletConfig:ServletConfig

the ServletConfig to be used by this object

See Also
org.springframework.beans.factory.InitializingBean#afterPropertiesSet, org.springframework.context.ApplicationContextAware#setApplicationContext