public class ConsulPropertySource
extends org.apache.tamaya.mutableconfig.propertysources.AbstractMutablePropertySource
consul.prefix
as system property maps the consul based onfiguration
to this prefix namespace. Consul servers are configured as consul.urls
system or environment property.Constructor and Description |
---|
ConsulPropertySource() |
Modifier and Type | Method and Description |
---|---|
protected void |
commitInternal(org.apache.tamaya.mutableconfig.propertysources.ConfigChangeContext context) |
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() |
Map<String,String> |
getProperties() |
boolean |
isScannable() |
public int getOrdinal()
getOrdinal
in interface org.apache.tamaya.spi.PropertySource
getOrdinal
in class org.apache.tamaya.spisupport.BasePropertySource
public int getDefaultOrdinal()
getDefaultOrdinal
in class org.apache.tamaya.spisupport.BasePropertySource
public String getName()
public org.apache.tamaya.spi.PropertyValue get(String key)
get
in interface org.apache.tamaya.spi.PropertySource
get
in class org.apache.tamaya.spisupport.BasePropertySource
public boolean isScannable()
isScannable
in interface org.apache.tamaya.spi.PropertySource
isScannable
in class org.apache.tamaya.spisupport.BasePropertySource
protected void commitInternal(org.apache.tamaya.mutableconfig.propertysources.ConfigChangeContext context)
commitInternal
in class org.apache.tamaya.mutableconfig.propertysources.AbstractMutablePropertySource
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.