Package | Description |
---|---|
org.springframework.context |
This package builds on the beans package to add support for
message sources and for the Observer design pattern, and the
ability for application objects to obtain resources using a
consistent API.
|
org.springframework.context.annotation |
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
|
org.springframework.context.support |
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
|
org.springframework.core.env |
Spring's environment abstraction consisting of bean definition
profile and hierarchical property source support.
|
org.springframework.jca.context |
Integration package that allows for deploying a Spring application context
as a JCA 1.7 compliant RAR file.
|
org.springframework.mock.env |
This package contains mock implementations of the
Environment and
PropertySource
abstractions introduced in Spring 3.1. |
org.springframework.test.context.support |
Support classes for the Spring TestContext Framework.
|
org.springframework.web.context |
Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
|
org.springframework.web.context.support |
Classes supporting the
org.springframework.web.context package,
such as WebApplicationContext implementations and various utility classes. |
org.springframework.web.servlet |
Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
|
Modifier and Type | Method and Description |
---|---|
ConfigurableEnvironment |
ConfigurableApplicationContext.getEnvironment()
Return the
Environment for this application context in configurable
form, allowing for further customization. |
Modifier and Type | Method and Description |
---|---|
void |
ConfigurableApplicationContext.setEnvironment(ConfigurableEnvironment environment)
Set the
Environment for this application context. |
Modifier and Type | Method and Description |
---|---|
void |
AnnotationConfigApplicationContext.setEnvironment(ConfigurableEnvironment environment)
Propagate the given custom
Environment to the underlying
AnnotatedBeanDefinitionReader and ClassPathBeanDefinitionScanner . |
Modifier and Type | Method and Description |
---|---|
protected ConfigurableEnvironment |
AbstractApplicationContext.createEnvironment()
Create and return a new
StandardEnvironment . |
ConfigurableEnvironment |
AbstractApplicationContext.getEnvironment()
Return the
Environment for this application context in configurable
form, allowing for further customization. |
Modifier and Type | Method and Description |
---|---|
void |
AbstractApplicationContext.setEnvironment(ConfigurableEnvironment environment)
Set the
Environment for this application context. |
void |
GenericXmlApplicationContext.setEnvironment(ConfigurableEnvironment environment)
Delegates the given environment to underlying
XmlBeanDefinitionReader . |
void |
GenericGroovyApplicationContext.setEnvironment(ConfigurableEnvironment environment)
Delegates the given environment to underlying
GroovyBeanDefinitionReader . |
Modifier and Type | Class and Description |
---|---|
class |
AbstractEnvironment
Abstract base class for
Environment implementations. |
class |
StandardEnvironment
Environment implementation suitable for use in 'standard' (i.e. |
Modifier and Type | Method and Description |
---|---|
void |
ConfigurableEnvironment.merge(ConfigurableEnvironment parent)
Append the given parent environment's active profiles, default profiles and
property sources to this (child) environment's respective collections of each.
|
void |
AbstractEnvironment.merge(ConfigurableEnvironment parent) |
Modifier and Type | Method and Description |
---|---|
protected ConfigurableEnvironment |
SpringContextResourceAdapter.createEnvironment()
Return a new
StandardEnvironment . |
Modifier and Type | Class and Description |
---|---|
class |
MockEnvironment
Simple
ConfigurableEnvironment implementation exposing
MockEnvironment.setProperty(String, String) and MockEnvironment.withProperty(String, String)
methods for testing purposes. |
Modifier and Type | Method and Description |
---|---|
static void |
TestPropertySourceUtils.addInlinedPropertiesToEnvironment(ConfigurableEnvironment environment,
String... inlinedProperties)
Add the given inlined properties (in the form of key-value
pairs) to the supplied
environment . |
static void |
TestPropertySourceUtils.addPropertiesFilesToEnvironment(ConfigurableEnvironment environment,
ResourceLoader resourceLoader,
String... locations)
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurableWebEnvironment
Specialization of
ConfigurableEnvironment allowing initialization of
servlet-related PropertySource objects at the
earliest moment that the ServletContext and (optionally) ServletConfig
become available. |
Modifier and Type | Class and Description |
---|---|
class |
StandardServletEnvironment
Environment implementation to be used by Servlet -based web
applications. |
Modifier and Type | Method and Description |
---|---|
protected ConfigurableEnvironment |
AbstractRefreshableWebApplicationContext.createEnvironment()
Create and return a new
StandardServletEnvironment . |
protected ConfigurableEnvironment |
StaticWebApplicationContext.createEnvironment()
Create and return a new
StandardServletEnvironment . |
protected ConfigurableEnvironment |
GenericWebApplicationContext.createEnvironment()
Create and return a new
StandardServletEnvironment . |
Modifier and Type | Method and Description |
---|---|
protected ConfigurableEnvironment |
HttpServletBean.createEnvironment()
Create and return a new
StandardServletEnvironment . |
ConfigurableEnvironment |
HttpServletBean.getEnvironment()
Return the
Environment associated with this servlet. |