public abstract class BasePropertySource extends Object implements PropertySource
PropertySource that allows to set a default ordinal that will be used, if no
ordinal is provided with the config.TAMAYA_ORDINAL| Modifier | Constructor and Description |
|---|---|
protected |
BasePropertySource()
Constructor, using a default ordinal of 0.
|
protected |
BasePropertySource(int defaultOrdinal)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key) |
int |
getDefaultOrdinal()
Returns the default ordinal used, when no ordinal is set, or the ordinal was not parseable to an int value.
|
int |
getOrdinal() |
boolean |
isScannable() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, getPropertiesprotected BasePropertySource(int defaultOrdinal)
defaultOrdinal - default ordinal that will be used, if no ordinal is provided with the config.protected BasePropertySource()
public int getOrdinal()
getOrdinal in interface PropertySourcepublic int getDefaultOrdinal()
public String get(String key)
get in interface PropertySourcepublic boolean isScannable()
isScannable in interface PropertySourceCopyright © 2014–2015 Apache Software Foundation. All rights reserved.