public class SystemPropertySource extends BasePropertySource
PropertySource manages the system properties. You can disable this feature by
setting tamaya.envprops.disable or tamaya.defaults.disable.| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_ORDINAL
default ordinal used.
|
| Constructor and Description |
|---|
SystemPropertySource()
Creates a new instance.
|
SystemPropertySource(int ordinal)
Creates a new instance using a fixed ordinal value.
|
SystemPropertySource(String prefix)
Creates a new instance.
|
SystemPropertySource(String prefix,
int ordinal)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.tamaya.spi.PropertyValue |
get(String key) |
String |
getName() |
Map<String,org.apache.tamaya.spi.PropertyValue> |
getProperties() |
boolean |
isScannable() |
protected String |
toStringValues() |
getDefaultOrdinal, getOrdinal, setDefaultOrdinal, setName, setOrdinal, toStringpublic static final int DEFAULT_ORDINAL
public SystemPropertySource()
prefix and disabled properties
from the system-/ environment properties:
tamaya.envprops.prefix
tamaya.envprops.disable
public SystemPropertySource(int ordinal)
ordinal - the ordinal number.public SystemPropertySource(String prefix, int ordinal)
prefix - the prefix to be used, or null.ordinal - the ordinal to be used.public SystemPropertySource(String prefix)
prefix - the prefix to be used, or null.public String getName()
getName in interface org.apache.tamaya.spi.PropertySourcegetName in class BasePropertySourcepublic org.apache.tamaya.spi.PropertyValue get(String key)
get in interface org.apache.tamaya.spi.PropertySourceget in class BasePropertySourcepublic boolean isScannable()
isScannable in interface org.apache.tamaya.spi.PropertySourceisScannable in class BasePropertySourceprotected String toStringValues()
toStringValues in class BasePropertySourceCopyright © 2016–2017 Apache Software Foundation. All rights reserved.