public interface SystemConfig
| Modifier and Type | Method and Description |
|---|---|
default void |
clearProperty(String key)
Remove property from the user-defined runtime configuration.
|
default boolean |
getBooleanProperty(String key)
Get property value for a key.
|
default boolean |
getBooleanProperty(String key,
boolean defaultValue)
Get property value for a key.
|
default double |
getDoubleProperty(String key)
Get property value for a key.
|
default double |
getDoubleProperty(String key,
double defaultValue)
Get property value for a key.
|
default float |
getFloatProperty(String key)
Get property value for a key.
|
default float |
getFloatProperty(String key,
float defaultValue)
Get property value for a key.
|
default int |
getIntProperty(String key)
Get property value for a key.
|
default int |
getIntProperty(String key,
int defaultValue)
Get property value for a key.
|
default <T> List<T> |
getListProperty(String key)
Get property value for a key.
|
default <T> List<T> |
getListProperty(String key,
List<T> defaultValue)
Get property value for a key.
|
default long |
getLongProperty(String key)
Get property value for a key.
|
default long |
getLongProperty(String key,
long defaultValue)
Get property value for a key.
|
org.apache.commons.configuration.Configuration |
getMasterConfiguration()
Get the internal System Configuration instance.
|
default String |
getPackageVariableName(String suffix)
Get a package scoped variable name.
|
Properties |
getRuntimeProperties()
The properties file used to hold modified SystemConfiguration values.
|
default String |
getStringProperty(String key)
Get property value for a key.
|
default String |
getStringProperty(String key,
String defaultValue)
Get property value for a key.
|
default void |
resetProperty(String key,
String value)
Remove property from the user-defined runtime configuration.
|
default void |
setProperty(String key,
String value)
Set property value for a key.
|
default String getPackageVariableName(String suffix)
suffix - The variable name of the configuration variable without the package prefixdefault String getStringProperty(@NotNull String key) throws SystemConfigException
key - The key for which value needs to be fetched, not nullSystemConfigException - A system exception if any errors occurreddefault int getIntProperty(@NotNull
String key)
throws SystemConfigException
key - The key for which value needs to be fetched, not nullSystemConfigException - A system exception if any errors occurreddefault boolean getBooleanProperty(@NotNull
String key)
throws SystemConfigException
key - The key for which value needs to be fetched, not nullSystemConfigException - A system exception if any errors occurreddefault float getFloatProperty(@NotNull
String key)
throws SystemConfigException
key - The key for which value needs to be fetched, not nullSystemConfigException - A system exception if any errors occurreddefault double getDoubleProperty(@NotNull
String key)
throws SystemConfigException
key - The key for which value needs to be fetched, not nullSystemConfigException - A system exception if any errors occurreddefault long getLongProperty(@NotNull
String key)
throws SystemConfigException
key - The key for which value needs to be fetched, not nullSystemConfigException - A system exception if any errors occurreddefault <T> List<T> getListProperty(@NotNull String key) throws SystemConfigException
T - The expected type of item in the listkey - The key for which value needs to be fetched, not nullSystemConfigException - A system exception if any errors occurreddefault String getStringProperty(@NotNull String key, String defaultValue) throws SystemConfigException
key - The key for which value needs to be fetched, not nulldefaultValue - The value to return if there is no configured valueSystemConfigException - A system exception if any errors occurreddefault int getIntProperty(@NotNull
String key,
int defaultValue)
throws SystemConfigException
key - The key for which value needs to be fetched, not nulldefaultValue - The value to return if there is no configured valueSystemConfigException - A system exception if any errors occurreddefault boolean getBooleanProperty(@NotNull
String key,
boolean defaultValue)
throws SystemConfigException
key - The key for which value needs to be fetched, not nulldefaultValue - The value to return if there is no configured valueSystemConfigException - A system exception if any errors occurreddefault float getFloatProperty(@NotNull
String key,
float defaultValue)
throws SystemConfigException
key - The key for which value needs to be fetched, not nulldefaultValue - The value to return if there is no configured valueSystemConfigException - A system exception if any errors occurreddefault double getDoubleProperty(@NotNull
String key,
double defaultValue)
throws SystemConfigException
key - The key for which value needs to be fetched, not nulldefaultValue - The value to return if there is no configured valueSystemConfigException - A system exception if any errors occurreddefault long getLongProperty(@NotNull
String key,
long defaultValue)
throws SystemConfigException
key - The key for which value needs to be fetched, not nulldefaultValue - The value to return if there is no configured valueSystemConfigException - A system exception if any errors occurreddefault <T> List<T> getListProperty(@NotNull String key, List<T> defaultValue) throws SystemConfigException
T - The expected type of item in the listkey - The key for which value needs to be fetched, not nulldefaultValue - The value to return if there is no configured valueSystemConfigException - A system exception if any errors occurreddefault void setProperty(@NotNull
String key,
String value)
throws SystemConfigException
key - The key of the property to change, not nullvalue - The new valueSystemConfigException - A system exception if any errors occurreddefault void clearProperty(@NotNull
String key)
key - The key of the property to remove.default void resetProperty(@NotNull
String key,
String value)
key - The key of the property to remove.value - The value to reset to (if not null)org.apache.commons.configuration.Configuration getMasterConfiguration()
Properties getRuntimeProperties()
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.