Uses of Interface
org.springframework.core.env.Environment
Packages that use Environment Package Description org.springframework.beans.factory.support Classes supporting theorg.springframework.beans.factory
package.org.springframework.beans.factory.xml Contains an abstract XML-basedBeanFactory
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 theEnvironment
andPropertySource
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 theorg.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.Uses of Environment in org.springframework.beans.factory.support
Methods in org.springframework.beans.factory.support that return Environment Modifier and Type Method Description Environment
AbstractBeanDefinitionReader. getEnvironment()
Methods in org.springframework.beans.factory.support with parameters of type Environment Modifier and Type Method Description void
AbstractBeanDefinitionReader. setEnvironment(Environment environment)
Set the Environment to use when reading bean definitions.Uses of Environment in org.springframework.beans.factory.xml
Methods in org.springframework.beans.factory.xml that return Environment Modifier and Type Method Description Environment
XmlReaderContext. getEnvironment()
Return the environment to use.Uses of Environment in org.springframework.context
Methods in org.springframework.context with parameters of type Environment Modifier and Type Method Description void
EnvironmentAware. setEnvironment(Environment environment)
Set theEnvironment
that this component runs in.Uses of Environment in org.springframework.context.annotation
Methods in org.springframework.context.annotation that return Environment Modifier and Type Method Description Environment
ClassPathScanningCandidateComponentProvider. getEnvironment()
Environment
ConditionContext. getEnvironment()
Return theEnvironment
for which the current application is running.Methods in org.springframework.context.annotation with parameters of type Environment Modifier and Type Method Description void
AnnotatedBeanDefinitionReader. setEnvironment(Environment environment)
Set theEnvironment
to use when evaluating whether@Conditional
-annotated component classes should be registered.void
ClassPathScanningCandidateComponentProvider. setEnvironment(Environment environment)
Set the Environment to use when resolving placeholders and evaluating@Conditional
-annotated component classes.void
ConfigurationClassPostProcessor. setEnvironment(Environment environment)
void
MBeanExportConfiguration. setEnvironment(Environment environment)
Constructors in org.springframework.context.annotation with parameters of type Environment Constructor Description AnnotatedBeanDefinitionReader(BeanDefinitionRegistry registry, Environment environment)
Create a newAnnotatedBeanDefinitionReader
for the given registry, using the givenEnvironment
.ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment)
Create a newClassPathBeanDefinitionScanner
for the given bean factory and using the givenEnvironment
when evaluating bean definition profile metadata.ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment, ResourceLoader resourceLoader)
Create a newClassPathBeanDefinitionScanner
for the given bean factory and using the givenEnvironment
when evaluating bean definition profile metadata.ClassPathScanningCandidateComponentProvider(boolean useDefaultFilters, Environment environment)
Create a ClassPathScanningCandidateComponentProvider with the givenEnvironment
.Uses of Environment in org.springframework.context.support
Methods in org.springframework.context.support with parameters of type Environment Modifier and Type Method Description void
PropertySourcesPlaceholderConfigurer. setEnvironment(Environment environment)
PropertySources
from the givenEnvironment
will be searched when replacing ${...} placeholders.Uses of Environment in org.springframework.core.env
Subinterfaces of Environment in org.springframework.core.env Modifier and Type Interface Description interface
ConfigurableEnvironment
Configuration interface to be implemented by most if not allEnvironment
types.Classes in org.springframework.core.env that implement Environment Modifier and Type Class Description class
AbstractEnvironment
Abstract base class forEnvironment
implementations.class
StandardEnvironment
Environment
implementation suitable for use in 'standard' (i.e.Methods in org.springframework.core.env that return Environment Modifier and Type Method Description Environment
EnvironmentCapable. getEnvironment()
Return theEnvironment
associated with this component.Uses of Environment in org.springframework.mock.env
Classes in org.springframework.mock.env that implement Environment Modifier and Type Class Description class
MockEnvironment
SimpleConfigurableEnvironment
implementation exposingMockEnvironment.setProperty(String, String)
andMockEnvironment.withProperty(String, String)
methods for testing purposes.Uses of Environment in org.springframework.web.context
Subinterfaces of Environment in org.springframework.web.context Modifier and Type Interface Description interface
ConfigurableWebEnvironment
Specialization ofConfigurableEnvironment
allowing initialization of servlet-relatedPropertySource
objects at the earliest moment that theServletContext
and (optionally)ServletConfig
become available.Uses of Environment in org.springframework.web.context.support
Classes in org.springframework.web.context.support that implement Environment Modifier and Type Class Description class
StandardServletEnvironment
Environment
implementation to be used byServlet
-based web applications.Uses of Environment in org.springframework.web.filter
Methods in org.springframework.web.filter that return Environment Modifier and Type Method Description protected Environment
GenericFilterBean. createEnvironment()
Create and return a newStandardServletEnvironment
.Environment
GenericFilterBean. getEnvironment()
Return theEnvironment
associated with this filter.Methods in org.springframework.web.filter with parameters of type Environment Modifier and Type Method Description void
GenericFilterBean. setEnvironment(Environment environment)
Set theEnvironment
that this filter runs in.Uses of Environment in org.springframework.web.servlet
Methods in org.springframework.web.servlet with parameters of type Environment Modifier and Type Method Description void
HttpServletBean. setEnvironment(Environment environment)
Set theEnvironment
that this servlet runs in.