Top Description Methods
org.springframework.core.env

public Interface PropertySources

extends Iterable<PropertySource<?>>
Known Direct Implementers
org.springframework.core.env.MutablePropertySources
Imports
java.util.stream.Stream, .StreamSupport, org.springframework.lang.Nullable

Holder containing one or more PropertySource objects.
Authors
Chris Beams, Juergen Hoeller
Since
3.1
See Also
PropertySource

Method Summary

Modifier and TypeMethod and Description
public boolean
contains(String name)

Return whether a property source with the given name is contained.

public PropertySource<?>
get(String name)

Return the property source with the given name, null if not found.

public default Stream<PropertySource<?>>
stream()

Return a sequential Stream containing the property sources.

Inherited from java.lang.Iterable:
forEachiteratorspliterator

Method Detail

containsback to summary
public boolean contains(String name)

Return whether a property source with the given name is contained.

Parameters
name:String

the name of the property source to find

getback to summary
public PropertySource<?> get(String name)

Return the property source with the given name, null if not found.

Parameters
name:String

the name of the property source to find

Annotations
@Nullable
streamback to summary
public default Stream<PropertySource<?>> stream()

Return a sequential Stream containing the property sources.

Since
5.1