Package org.springframework.core.env
Interface PropertySources
- All Superinterfaces:
Iterable<PropertySource<?>>
- All Known Implementing Classes:
MutablePropertySources
Holder containing one or more
PropertySource
objects.- Since:
- 3.1
- Author:
- Chris Beams, Juergen Hoeller
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Return whether a property source with the given name is contained.Return the property source with the given name,null
if not found.default Stream<PropertySource<?>>
stream()
Return a sequentialStream
containing the property sources.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
stream
Return a sequentialStream
containing the property sources.- Since:
- 5.1
-
contains
Return whether a property source with the given name is contained.- Parameters:
name
- the name of the property source to find
-
get
Return the property source with the given name,null
if not found.- Parameters:
name
- the name of the property source to find
-