Uses of Interface
org.springframework.core.env.Environment
Packages that use 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 introduced in Spring 3.1.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
Methods in org.springframework.beans.factory.support that return EnvironmentMethods in org.springframework.beans.factory.support with parameters of type EnvironmentModifier and TypeMethodDescriptionvoidAbstractBeanDefinitionReader.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 EnvironmentModifier and TypeMethodDescriptionfinal EnvironmentXmlReaderContext.getEnvironment()Return the environment to use. -
Uses of Environment in org.springframework.context
Methods in org.springframework.context with parameters of type EnvironmentModifier and TypeMethodDescriptionvoidEnvironmentAware.setEnvironment(Environment environment) Set theEnvironmentthat this component runs in. -
Uses of Environment in org.springframework.context.annotation
Methods in org.springframework.context.annotation that return EnvironmentModifier and TypeMethodDescriptionfinal EnvironmentClassPathScanningCandidateComponentProvider.getEnvironment()ConditionContext.getEnvironment()Return theEnvironmentfor which the current application is running.Methods in org.springframework.context.annotation with parameters of type EnvironmentModifier 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().voidAnnotatedBeanDefinitionReader.setEnvironment(Environment environment) Set theEnvironmentto use when evaluating whether@Conditional-annotated component classes should be registered.voidClassPathScanningCandidateComponentProvider.setEnvironment(Environment environment) Set the Environment to use when resolving placeholders and evaluating@Conditional-annotated component classes.voidConfigurationClassPostProcessor.setEnvironment(Environment environment) voidMBeanExportConfiguration.setEnvironment(Environment environment) Constructors in org.springframework.context.annotation with parameters of type EnvironmentModifierConstructorDescriptionAnnotatedBeanDefinitionReader(BeanDefinitionRegistry registry, Environment environment) Create a newAnnotatedBeanDefinitionReaderfor the given registry, using the givenEnvironment.ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment) Create a newClassPathBeanDefinitionScannerfor the given bean factory and using the givenEnvironmentwhen evaluating bean definition profile metadata.ClassPathBeanDefinitionScanner(BeanDefinitionRegistry registry, boolean useDefaultFilters, Environment environment, ResourceLoader resourceLoader) Create a newClassPathBeanDefinitionScannerfor the given bean factory and using the givenEnvironmentwhen 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 EnvironmentModifier and TypeMethodDescriptionvoidPropertySourcesPlaceholderConfigurer.setEnvironment(Environment environment) PropertySourcesfrom the givenEnvironmentwill be searched when replacing ${...} placeholders. -
Uses of Environment in org.springframework.core.env
Subinterfaces of Environment in org.springframework.core.envModifier and TypeInterfaceDescriptioninterfaceConfiguration interface to be implemented by most if not allEnvironmenttypes.Classes in org.springframework.core.env that implement EnvironmentModifier and TypeClassDescriptionclassAbstract base class forEnvironmentimplementations.classEnvironmentimplementation suitable for use in 'standard' (i.e.Methods in org.springframework.core.env that return EnvironmentModifier and TypeMethodDescriptionEnvironmentCapable.getEnvironment()Return theEnvironmentassociated with this component. -
Uses of Environment in org.springframework.mock.env
Classes in org.springframework.mock.env that implement EnvironmentModifier and TypeClassDescriptionclassSimpleConfigurableEnvironmentimplementation 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.contextModifier and TypeInterfaceDescriptioninterfaceSpecialization ofConfigurableEnvironmentallowing initialization of servlet-relatedPropertySourceobjects at the earliest moment that theServletContextand (optionally)ServletConfigbecome available. -
Uses of Environment in org.springframework.web.context.support
Classes in org.springframework.web.context.support that implement EnvironmentModifier and TypeClassDescriptionclassEnvironmentimplementation to be used byServlet-based web applications. -
Uses of Environment in org.springframework.web.filter
Methods in org.springframework.web.filter that return EnvironmentModifier and TypeMethodDescriptionprotected EnvironmentGenericFilterBean.createEnvironment()Create and return a newStandardServletEnvironment.GenericFilterBean.getEnvironment()Return theEnvironmentassociated with this filter.Methods in org.springframework.web.filter with parameters of type EnvironmentModifier and TypeMethodDescriptionvoidGenericFilterBean.setEnvironment(Environment environment) Set theEnvironmentthat this filter runs in. -
Uses of Environment in org.springframework.web.servlet
Methods in org.springframework.web.servlet with parameters of type EnvironmentModifier and TypeMethodDescriptionvoidHttpServletBean.setEnvironment(Environment environment) Set theEnvironmentthat this servlet runs in.