Uses of Interface
org.springframework.core.env.Environment
Package
Description
Classes supporting the
org.springframework.beans.factory
package.Contains an abstract XML-based
BeanFactory
implementation,
including a standard "spring-beans" XSD.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.
Annotation support for the Application Context, including JSR-250 "common"
annotations, component-scanning, and Java-based metadata for creating
Spring-managed objects.
Classes supporting the org.springframework.context package,
such as abstract base classes for ApplicationContext
implementations and a MessageSource implementation.
Spring's environment abstraction consisting of bean definition
profile and hierarchical property source support.
This package contains mock implementations of the
Environment
and
PropertySource
abstractions.Contains a variant of the application context interface for web applications,
and the ContextLoaderListener that bootstraps a root web application context.
Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.Provides generic filter base classes allowing for bean-style configuration.
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
Modifier and TypeMethodDescriptionvoid
AbstractBeanDefinitionReader.setEnvironment
(Environment environment) Set the Environment to use when reading bean definitions. -
Uses of Environment in org.springframework.beans.factory.xml
Modifier and TypeMethodDescriptionfinal Environment
XmlReaderContext.getEnvironment()
Return the environment to use. -
Uses of Environment in org.springframework.context
Modifier and TypeMethodDescriptionvoid
EnvironmentAware.setEnvironment
(Environment environment) Set theEnvironment
that this component runs in. -
Uses of Environment in org.springframework.context.annotation
Modifier and TypeMethodDescriptionfinal Environment
ClassPathScanningCandidateComponentProvider.getEnvironment()
ConditionContext.getEnvironment()
Return theEnvironment
for which the current application is running.Modifier and TypeMethodDescriptionstatic List<TypeFilter>
TypeFilterUtils.createTypeFiltersFor
(AnnotationAttributes filterAttributes, Environment environment, ResourceLoader resourceLoader, BeanDefinitionRegistry registry) Create type filters from the suppliedAnnotationAttributes
, such as those sourced fromComponentScan.includeFilters()
orComponentScan.excludeFilters()
.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) ModifierConstructorDescriptionAnnotatedBeanDefinitionReader
(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
Modifier and TypeMethodDescriptionvoid
PropertySourcesPlaceholderConfigurer.setEnvironment
(Environment environment) PropertySources
from the givenEnvironment
will be searched when replacing ${...} placeholders. -
Uses of Environment in org.springframework.core.env
Modifier and TypeInterfaceDescriptioninterface
Configuration interface to be implemented by most if not allEnvironment
types.Modifier and TypeClassDescriptionclass
Abstract base class forEnvironment
implementations.class
Environment
implementation suitable for use in 'standard' (i.e.Modifier and TypeMethodDescriptionEnvironmentCapable.getEnvironment()
Return theEnvironment
associated with this component. -
Uses of Environment in org.springframework.mock.env
Modifier and TypeClassDescriptionclass
SimpleConfigurableEnvironment
implementation exposingMockEnvironment.setProperty(String, String)
andMockEnvironment.withProperty(String, String)
methods for testing purposes. -
Uses of Environment in org.springframework.web.context
Modifier and TypeInterfaceDescriptioninterface
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
Modifier and TypeClassDescriptionclass
Environment
implementation to be used byServlet
-based web applications. -
Uses of Environment in org.springframework.web.filter
Modifier and TypeMethodDescriptionprotected Environment
GenericFilterBean.createEnvironment()
Create and return a newStandardServletEnvironment
.GenericFilterBean.getEnvironment()
Return theEnvironment
associated with this filter.Modifier and TypeMethodDescriptionvoid
GenericFilterBean.setEnvironment
(Environment environment) Set theEnvironment
that this filter runs in. -
Uses of Environment in org.springframework.web.servlet
Modifier and TypeMethodDescriptionvoid
HttpServletBean.setEnvironment
(Environment environment) Set theEnvironment
that this servlet runs in.