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