public abstract class BasePropertySource extends Object implements org.apache.tamaya.spi.PropertySource
PropertySource
that allows to set a default ordinal that will be used, if no
ordinal is provided with the config.Modifier | Constructor and Description |
---|---|
protected |
BasePropertySource()
Constructor, using a default ordinal of 0.
|
protected |
BasePropertySource(int defaultOrdinal)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.apache.tamaya.spi.PropertyValue |
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.
|
String |
getName() |
int |
getOrdinal() |
boolean |
isScannable() |
protected BasePropertySource(int defaultOrdinal)
defaultOrdinal
- default ordinal that will be used, if no ordinal is provided with the config.protected BasePropertySource()
public String getName()
getName
in interface org.apache.tamaya.spi.PropertySource
public int getOrdinal()
getOrdinal
in interface org.apache.tamaya.spi.PropertySource
public int getDefaultOrdinal()
public org.apache.tamaya.spi.PropertyValue get(String key)
get
in interface org.apache.tamaya.spi.PropertySource
public boolean isScannable()
isScannable
in interface org.apache.tamaya.spi.PropertySource
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.