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, wait
getName, getProperties
protected 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 PropertySource
public int getDefaultOrdinal()
public String get(String key)
get
in interface PropertySource
public boolean isScannable()
isScannable
in interface PropertySource
Copyright © 2014–2015 Apache Software Foundation. All rights reserved.