Package | Description |
---|---|
org.springframework.beans.factory.support |
Classes supporting the
org.springframework.beans.factory package. |
org.springframework.beans.factory.xml |
Contains an abstract XML-based
BeanFactory implementation,
including a standard "spring-beans" XSD. |
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.mock.env |
This package contains mock implementations of the
Environment and
PropertySource
abstractions introduced in Spring 3.1. |
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.filter |
Provides generic filter base classes allowing for bean-style configuration.
|
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 |
---|---|
Environment |
AbstractBeanDefinitionReader.getEnvironment() |
Modifier and Type | Method and Description |
---|---|
void |
AbstractBeanDefinitionReader.setEnvironment(Environment environment)
Set the Environment to use when reading bean definitions.
|
Modifier and Type | Method and Description |
---|---|
Environment |
XmlReaderContext.getEnvironment()
Return the environment to use.
|
Modifier and Type | Method and Description |
---|---|
void |
EnvironmentAware.setEnvironment(Environment environment)
Set the
Environment that this component runs in. |
Modifier and Type | Method and Description |
---|---|
Environment |
ConditionContext.getEnvironment()
Return the
Environment for which the current application is running. |
Environment |
ClassPathScanningCandidateComponentProvider.getEnvironment() |
Modifier and Type | Method and Description |
---|---|
static List<TypeFilter> |
TypeFilterUtils.createTypeFiltersFor(AnnotationAttributes filterAttributes,
Environment environment,
ResourceLoader resourceLoader,
BeanDefinitionRegistry registry)
Create type filters from the supplied
AnnotationAttributes , such as those sourced from
ComponentScan.includeFilters() or ComponentScan.excludeFilters() . |
void |
ClassPathScanningCandidateComponentProvider.setEnvironment(Environment environment)
Set the Environment to use when resolving placeholders and evaluating
@Conditional -annotated component classes. |
void |
MBeanExportConfiguration.setEnvironment(Environment environment) |
void |
AnnotatedBeanDefinitionReader.setEnvironment(Environment environment)
Set the
Environment to use when evaluating whether
@Conditional -annotated component classes should be registered. |
void |
ConfigurationClassPostProcessor.setEnvironment(Environment environment) |
Constructor and Description |
---|
AnnotatedBeanDefinitionReader(BeanDefinitionRegistry registry,
Environment environment)
Create a new
AnnotatedBeanDefinitionReader for the given registry,
using the given Environment . |
ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry,
boolean useDefaultFilters,
Environment environment)
Create a new
ClassPathBeanDefinitionScanner for the given bean factory and
using the given Environment when evaluating bean definition profile metadata. |
ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry,
boolean useDefaultFilters,
Environment environment,
ResourceLoader resourceLoader)
Create a new
ClassPathBeanDefinitionScanner for the given bean factory and
using the given Environment when evaluating bean definition profile metadata. |
ClassPathScanningCandidateComponentProvider(boolean useDefaultFilters,
Environment environment)
Create a ClassPathScanningCandidateComponentProvider with the given
Environment . |
Modifier and Type | Method and Description |
---|---|
void |
PropertySourcesPlaceholderConfigurer.setEnvironment(Environment environment)
PropertySources from the given Environment
will be searched when replacing ${...} placeholders. |
Modifier and Type | Interface and Description |
---|---|
interface |
ConfigurableEnvironment
Configuration interface to be implemented by most if not all
Environment types. |
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 |
---|---|
Environment |
EnvironmentCapable.getEnvironment()
Return the
Environment associated with this component. |
Modifier and Type | Class and Description |
---|---|
class |
MockEnvironment
Simple
ConfigurableEnvironment implementation exposing
MockEnvironment.setProperty(java.lang.String, java.lang.String) and MockEnvironment.withProperty(java.lang.String, java.lang.String) methods for testing purposes. |
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 Environment |
GenericFilterBean.createEnvironment()
Create and return a new
StandardServletEnvironment . |
Environment |
GenericFilterBean.getEnvironment()
Return the
Environment associated with this filter. |
Modifier and Type | Method and Description |
---|---|
void |
GenericFilterBean.setEnvironment(Environment environment)
Set the
Environment that this filter runs in. |
Modifier and Type | Method and Description |
---|---|
void |
HttpServletBean.setEnvironment(Environment environment)
Set the
Environment that this servlet runs in. |