Uses of Class
org.springframework.core.env.PropertySource
Package
Description
Spring's environment abstraction consisting of bean definition
profile and hierarchical property source support.
Support classes for Spring's resource abstraction.
The classes in this package make JNDI easier to use,
facilitating the accessing of configuration stored in JNDI,
and provide useful superclasses for JNDI access classes.
This package contains mock implementations of the
Environment
and
PropertySource
abstractions.Classes supporting the
org.springframework.web.context
package,
such as WebApplicationContext implementations and various utility classes.-
Uses of PropertySource in org.springframework.core.env
Modifier and TypeClassDescriptionclass
Abstract base class forPropertySource
implementations backed by command line arguments.class
CompositePropertySource
implementation that iterates over a set ofPropertySource
instances.class
APropertySource
implementation capable of interrogating its underlying source object to enumerate all possible property name/value pairs.class
Deprecated.since 6.1 with no plans for a replacementclass
PropertySource
that reads keys and values from aMap
object.class
PropertySource
implementation that extracts properties from aProperties
object.static class
PropertySource
to be used as a placeholder in cases where an actual property source cannot be eagerly initialized at application context creation time.class
CommandLinePropertySource
implementation backed by a simple String array.class
Specialization ofMapPropertySource
designed for use with system environment variables.Modifier and TypeMethodDescriptionReturn the property source with the given name,null
if not found.static PropertySource<?>
Return aPropertySource
implementation intended for collection comparison purposes only.Remove and return the property source with the given name,null
if not found.Modifier and TypeMethodDescriptionCompositePropertySource.getPropertySources()
Return all property sources that this composite source holds.MutablePropertySources.iterator()
MutablePropertySources.spliterator()
Stream<PropertySource<?>>
MutablePropertySources.stream()
default Stream<PropertySource<?>>
PropertySources.stream()
Return a sequentialStream
containing the property sources.Modifier and TypeMethodDescriptionvoid
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 the highest precedence.void
CompositePropertySource.addFirstPropertySource
(PropertySource<?> propertySource) Add the givenPropertySource
to the start of the chain.void
MutablePropertySources.addLast
(PropertySource<?> propertySource) Add the given property source object with the lowest precedence.void
CompositePropertySource.addPropertySource
(PropertySource<?> propertySource) Add the givenPropertySource
to 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 givenPropertySource
, resulting in the given value.int
MutablePropertySources.precedenceOf
(PropertySource<?> propertySource) Return the precedence of the given property source,-1
if 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. -
Uses of PropertySource in org.springframework.core.io.support
Modifier and TypeClassDescriptionclass
Subclass ofPropertiesPropertySource
that loads aProperties
object from a givenResource
or resource location such as"classpath:/com/myco/foo.properties"
or"file:/path/to/file.xml"
.Modifier and TypeMethodDescriptionDefaultPropertySourceFactory.createPropertySource
(String name, EncodedResource resource) PropertySourceFactory.createPropertySource
(String name, EncodedResource resource) Create aPropertySource
that wraps the given resource. -
Uses of PropertySource in org.springframework.jndi
Modifier and TypeClassDescriptionclass
PropertySource
implementation that reads properties from an underlying SpringJndiLocatorDelegate
. -
Uses of PropertySource in org.springframework.mock.env
-
Uses of PropertySource in org.springframework.web.context.support
Modifier and TypeClassDescriptionclass
PropertySource
that reads init parameters from aServletConfig
object.class
PropertySource
that reads init parameters from aServletContext
object.