| Package | Description | 
|---|---|
| org.springframework.core.env | Spring's environment abstraction consisting of bean definition
 profile and hierarchical property source support. | 
| org.springframework.core.io.support | Support classes for Spring's resource abstraction. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | CommandLinePropertySource<T>Abstract base class for  PropertySourceimplementations backed by command line
 arguments. | 
| class  | CompositePropertySourceComposite  PropertySourceimplementation that iterates over a set ofPropertySourceinstances. | 
| class  | EnumerablePropertySource<T>A  PropertySourceimplementation capable of interrogating its
 underlying source object to enumerate all possible property name/value
 pairs. | 
| class  | JOptCommandLinePropertySourceCommandLinePropertySourceimplementation backed by a JOptOptionSet. | 
| class  | MapPropertySourcePropertySourcethat reads keys and values from aMapobject. | 
| class  | PropertiesPropertySourcePropertySourceimplementation that extracts properties from aPropertiesobject. | 
| static class  | PropertySource.StubPropertySourcePropertySourceto be used as a placeholder in cases where an actual
 property source cannot be eagerly initialized at application context
 creation time. | 
| class  | SimpleCommandLinePropertySourceCommandLinePropertySourceimplementation backed by a simple String array. | 
| class  | SystemEnvironmentPropertySourceSpecialization of  MapPropertySourcedesigned for use with
 system environment variables. | 
| Modifier and Type | Method and Description | 
|---|---|
| PropertySource<?> | PropertySources. get(String name)Return the property source with the given name,  nullif not found. | 
| PropertySource<?> | MutablePropertySources. get(String name) | 
| static PropertySource<?> | PropertySource. named(String name)Return a  PropertySourceimplementation intended for collection comparison purposes only. | 
| PropertySource<?> | MutablePropertySources. remove(String name)Remove and return the property source with the given name,  nullif not found. | 
| Modifier and Type | Method and Description | 
|---|---|
| Collection<PropertySource<?>> | CompositePropertySource. getPropertySources()Return all property sources that this composite source holds. | 
| Iterator<PropertySource<?>> | MutablePropertySources. iterator() | 
| Spliterator<PropertySource<?>> | MutablePropertySources. spliterator() | 
| default Stream<PropertySource<?>> | PropertySources. stream()Return a sequential  Streamcontaining the property sources. | 
| Stream<PropertySource<?>> | MutablePropertySources. stream() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | MutablePropertySources. addAfter(String relativePropertySourceName,
        PropertySource<?> propertySource)Add the given property source object with precedence immediately lower
 than the named relative property source. | 
| void | MutablePropertySources. addBefore(String relativePropertySourceName,
         PropertySource<?> propertySource)Add the given property source object with precedence immediately higher
 than the named relative property source. | 
| void | MutablePropertySources. addFirst(PropertySource<?> propertySource)Add the given property source object with highest precedence. | 
| void | CompositePropertySource. addFirstPropertySource(PropertySource<?> propertySource)Add the given  PropertySourceto the start of the chain. | 
| void | MutablePropertySources. addLast(PropertySource<?> propertySource)Add the given property source object with lowest precedence. | 
| void | CompositePropertySource. addPropertySource(PropertySource<?> propertySource)Add the given  PropertySourceto the end of the chain. | 
| protected void | MutablePropertySources. assertLegalRelativeAddition(String relativePropertySourceName,
                           PropertySource<?> propertySource)Ensure that the given property source is not being added relative to itself. | 
| protected void | PropertySourcesPropertyResolver. logKeyFound(String key,
           PropertySource<?> propertySource,
           Object value)Log the given key as found in the given  PropertySource, resulting in
 the given value. | 
| int | MutablePropertySources. precedenceOf(PropertySource<?> propertySource)Return the precedence of the given property source,  -1if not found. | 
| protected void | MutablePropertySources. removeIfPresent(PropertySource<?> propertySource)Remove the given property source if it is present. | 
| void | MutablePropertySources. replace(String name,
       PropertySource<?> propertySource)Replace the property source with the given name with the given property source object. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ResourcePropertySourceSubclass of  PropertiesPropertySourcethat loads aPropertiesobject
 from a givenResourceor resource location such as"classpath:/com/myco/foo.properties"or"file:/path/to/file.xml". | 
| Modifier and Type | Method and Description | 
|---|---|
| PropertySource<?> | DefaultPropertySourceFactory. createPropertySource(String name,
                    EncodedResource resource) | 
| PropertySource<?> | PropertySourceFactory. createPropertySource(String name,
                    EncodedResource resource)Create a  PropertySourcethat wraps the given resource. |