spring-framework / org.springframework.web.context.support / StandardServletEnvironment

StandardServletEnvironment

open class StandardServletEnvironment : StandardEnvironment, ConfigurableWebEnvironment

Environment implementation to be used by Servlet-based web applications. All web-related (servlet-based) ApplicationContext classes initialize an instance by default.

Contributes ServletConfig, ServletContext, and JNDI-based PropertySource instances. See #customizePropertySources method documentation for details.

Author
Chris Beams

Since
3.1

See Also
StandardEnvironment

Constructors

<init>

StandardServletEnvironment()

Environment implementation to be used by Servlet-based web applications. All web-related (servlet-based) ApplicationContext classes initialize an instance by default.

Contributes ServletConfig, ServletContext, and JNDI-based PropertySource instances. See #customizePropertySources method documentation for details.

Properties

JNDI_PROPERTY_SOURCE_NAME

static val JNDI_PROPERTY_SOURCE_NAME: String

JNDI property source name: {@value}

SERVLET_CONFIG_PROPERTY_SOURCE_NAME

static val SERVLET_CONFIG_PROPERTY_SOURCE_NAME: String

Servlet config init parameters property source name: {@value}

SERVLET_CONTEXT_PROPERTY_SOURCE_NAME

static val SERVLET_CONTEXT_PROPERTY_SOURCE_NAME: String

Servlet context init parameters property source name: {@value}

Functions

initPropertySources

open fun initPropertySources(servletContext: ServletContext, servletConfig: ServletConfig): Unit