public abstract class AbstractPropertySource extends java.lang.Object implements PropertySource
| Constructor and Description |
|---|
AbstractPropertySource() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(java.lang.String key,
java.lang.Class<T> type)
Get a property value of a specific type
|
<T> T |
get(java.lang.String key,
java.lang.Class<T> type,
T defaultValue)
Get a property value of a specific type while returning a
default value if the property is not set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitget, get, hasPropertypublic <T> T get(java.lang.String key,
java.lang.Class<T> type)
PropertySourceget in interface PropertySourcekey - Name of property to fetchtype - Type of value requestedpublic <T> T get(java.lang.String key,
java.lang.Class<T> type,
T defaultValue)
PropertySourceget in interface PropertySourcekey - Name of property to fetchtype - Type of value requesteddefaultValue - Default value to return if key not found