public class ConfigProperties
extends java.lang.Object
Constructor and Description |
---|
ConfigProperties() |
ConfigProperties(java.util.Collection<PropertyConfig> configProperties) |
ConfigProperties(PropertyConfig... configProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
getBooleanValue(java.lang.String name,
boolean defaultValue)
Returns the boolean value of specified property.
|
int |
getIntValue(java.lang.String name)
Returns the integer value of specified property.
|
int |
getIntValue(java.lang.String name,
int defaultValue)
Returns the integer value of specified property.
|
java.lang.String |
getStringValue(java.lang.String name)
Returns the string value of specified property.
|
java.lang.String |
getStringValue(java.lang.String name,
java.lang.String defaultValue)
Returns the string value of specified property.
|
public ConfigProperties()
public ConfigProperties(PropertyConfig... configProperties)
public ConfigProperties(java.util.Collection<PropertyConfig> configProperties)
public java.lang.String getStringValue(java.lang.String name, java.lang.String defaultValue)
name
- property name.defaultValue
- default value.defaultValue
if the property is missing.public java.lang.String getStringValue(java.lang.String name)
name
- property name.AuthConfigException
- if the property is missing.public int getIntValue(java.lang.String name, int defaultValue)
name
- property name.defaultValue
- default value.defaultValue
if the property is missing.public int getIntValue(java.lang.String name)
name
- property name.AuthConfigException
- if the property is missing.public boolean getBooleanValue(java.lang.String name, boolean defaultValue)
name
- property name.defaultValue
- default value.defaultValue
if the property is missing.