public abstract class

EnumerablePropertySource

extends PropertySource<T>
java.lang.Object
   ↳ org.springframework.core.env.PropertySource<T>
     ↳ org.springframework.core.env.EnumerablePropertySource<T>
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

TODO SPR-7508: document

Summary

Fields
protected static final String[] EMPTY_NAMES_ARRAY
[Expand]
Inherited Fields
From class org.springframework.core.env.PropertySource
Public Constructors
EnumerablePropertySource(String name, T source)
Public Methods
boolean containsProperty(String name)
Return whether this PropertySource contains the given key.
abstract String[] getPropertyNames()
Return the names of all properties contained by the source object (never null).
[Expand]
Inherited Methods
From class org.springframework.core.env.PropertySource
From class java.lang.Object

Fields

protected static final String[] EMPTY_NAMES_ARRAY

Also: SpringCore

Public Constructors

public EnumerablePropertySource (String name, T source)

Also: SpringCore

Public Methods

public boolean containsProperty (String name)

Also: SpringCore

Return whether this PropertySource contains the given key.

This implementation checks for the presence of the given key within the getPropertyNames() array.

Parameters
name the property key to find

public abstract String[] getPropertyNames ()

Also: SpringCore

Return the names of all properties contained by the source object (never null).