程序包 org.springframework.core.env
Spring's environment abstraction consisting of bean definition profile and hierarchical property source support.
接口概要 接口 说明 ConfigurableEnvironment Configuration interface to be implemented by most if not allEnvironmenttypes.ConfigurablePropertyResolver Configuration interface to be implemented by most if not allPropertyResolvertypes.Environment Interface representing the environment in which the current application is running.EnvironmentCapable Interface indicating a component that contains and exposes anEnvironmentreference.PropertyResolver Interface for resolving properties against any underlying source.PropertySources Holder containing one or morePropertySourceobjects.类概要 类 说明 AbstractEnvironment Abstract base class forEnvironmentimplementations.AbstractPropertyResolver Abstract base class for resolving properties against any underlying source.CommandLinePropertySource<T> Abstract base class forPropertySourceimplementations backed by command line arguments.CompositePropertySource CompositePropertySourceimplementation that iterates over a set ofPropertySourceinstances.EnumerablePropertySource<T> APropertySourceimplementation capable of interrogating its underlying source object to enumerate all possible property name/value pairs.JOptCommandLinePropertySource CommandLinePropertySourceimplementation backed by a JOptOptionSet.MapPropertySource PropertySourcethat reads keys and values from aMapobject.MutablePropertySources Default implementation of thePropertySourcesinterface.PropertiesPropertySource PropertySourceimplementation that extracts properties from aPropertiesobject.PropertySource<T> Abstract base class representing a source of name/value property pairs.PropertySource.StubPropertySource PropertySourceto be used as a placeholder in cases where an actual property source cannot be eagerly initialized at application context creation time.PropertySourcesPropertyResolver PropertyResolverimplementation that resolves property values against an underlying set ofPropertySources.SimpleCommandLinePropertySource CommandLinePropertySourceimplementation backed by a simple String array.StandardEnvironment Environmentimplementation suitable for use in 'standard' (i.e. non-web) applications.SystemEnvironmentPropertySource Specialization ofMapPropertySourcedesigned for use with system environment variables.异常错误概要 异常错误 说明 MissingRequiredPropertiesException Exception thrown when required properties are not found.