org.springframework.core.env
Class EnumerablePropertySource<T>
java.lang.Object
org.springframework.core.env.PropertySource<T>
org.springframework.core.env.EnumerablePropertySource<T>
- Direct Known Subclasses:
- MapPropertySource, PortletConfigPropertySource, PortletContextPropertySource, ServletConfigPropertySource, ServletContextPropertySource
public abstract class EnumerablePropertySource<T>
- extends PropertySource<T>
TODO SPR-7508: document
- Since:
- 3.1
- Author:
- Chris Beams
EMPTY_NAMES_ARRAY
protected static final String[] EMPTY_NAMES_ARRAY
EnumerablePropertySource
public EnumerablePropertySource(String name,
T source)
getPropertyNames
public abstract String[] getPropertyNames()
- Return the names of all properties contained by the source object (never
null).
containsProperty
public boolean containsProperty(String name)
- Return whether this
PropertySource contains the given key.
This implementation checks for the presence of the given key within
the getPropertyNames() array.
- Overrides:
containsProperty in class PropertySource<T>
- Parameters:
key - the property key to find