public class YamlPropertyManager extends PropertyManager
APPLICATION_PROPERTIES_FILE_NAME, MDW_CONFIG_LOCATION, MDW_PROPERTIES_FILE_NAME, MDW_PROPERTY_MANAGER
Constructor and Description |
---|
YamlPropertyManager(java.io.File mdwYaml) |
YamlPropertyManager(java.lang.String yaml)
For PaaS.
|
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
java.util.Properties |
getAllProperties()
Only returns cached (previously-read) properties.
|
java.util.List<java.lang.String> |
getList(java.lang.String name) |
YamlLoader |
getLoader(java.lang.String name)
Returns the YAML loader containing the given root name (if any).
|
java.util.Properties |
getProperties(java.lang.String group)
Properties for group
|
java.lang.String |
getStringProperty(java.lang.String name) |
boolean |
isEncrypted(java.lang.String propName) |
void |
refreshCache() |
void |
setStringProperty(java.lang.String name,
java.lang.String value) |
get, get, get, get, get, getBooleanProperty, getConfigLocation, getInstance, getIntegerProperty, getListProperty, getLongProperty, getProperty, getProperty, getSources, initializeMockPropertyManager, isYaml, loadFromStream
public YamlPropertyManager(java.io.File mdwYaml) throws java.io.IOException
java.io.IOException
public YamlPropertyManager(java.lang.String yaml) throws java.io.IOException
java.io.IOException
public void refreshCache() throws java.lang.Exception
java.lang.Exception
public void clearCache()
public java.util.Properties getProperties(java.lang.String group) throws PropertyException
PropertyManager
getProperties
in class PropertyManager
PropertyException
public java.lang.String getStringProperty(java.lang.String name)
getStringProperty
in class PropertyManager
public void setStringProperty(java.lang.String name, java.lang.String value)
setStringProperty
in class PropertyManager
public java.util.List<java.lang.String> getList(java.lang.String name)
getList
in class PropertyManager
public java.util.Properties getAllProperties()
mdw config [name]
.getAllProperties
in class PropertyManager
public YamlLoader getLoader(java.lang.String name)
public boolean isEncrypted(java.lang.String propName)
isEncrypted
in class PropertyManager
Copyright © 2019 CenturyLink, Inc.