public class EmptyPropertySource extends Object implements PropertySource
An PropertySource
that is empty when instantiated.
PropertySource.PropertyConvention
CONTEXT
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
EmptyPropertySource()
Default constructor.
|
EmptyPropertySource(String name)
Creates a property source with a name.
|
Modifier and Type | Method and Description |
---|---|
Object |
get(String key)
Get a property value of the given key.
|
String |
getName() |
Iterator<String> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConvention, of, of, of, of
forEach, spliterator
public EmptyPropertySource()
public EmptyPropertySource(String name)
name
- The namepublic String getName()
getName
in interface PropertySource
public Object get(String key)
PropertySource
get
in interface PropertySource
key
- The key