spring-framework / org.springframework.web.context.support / ServletContextParameterFactoryBean / <init>

<init>

ServletContextParameterFactoryBean()

FactoryBean that retrieves a specific ServletContext init parameter (that is, a "context-param" defined in web.xml). Exposes that ServletContext init parameter when used as bean reference, effectively making it available as named Spring bean instance.

NOTE: As of Spring 3.0, you may also use the "contextParameters" default bean which is of type Map, and dereference it using an "#{contextParameters.myKey}" expression to access a specific parameter by name.

Author
Juergen Hoeller

Since
1.2.4

See Also
org.springframework.web.context.WebApplicationContext#CONTEXT_PARAMETERS_BEAN_NAMEServletContextAttributeFactoryBean