public static class GlobalProperties.DelegatedGlobalPropertySource extends Object implements GlobalProperties.PropertySource
| Constructor and Description |
|---|
GlobalProperties.DelegatedGlobalPropertySource(String serverName) |
| Modifier and Type | Method and Description |
|---|---|
String |
get(String key,
String defaultValue)
Get a property.
|
boolean |
getBoolean(String key,
boolean defaultValue) |
<T extends Enum<T>> |
getEnum(Class<T> enumType,
String key,
T defaultValue) |
int |
getInt(String key,
int defaultValue) |
String |
getServerName()
Return the name of the server.
|
public GlobalProperties.DelegatedGlobalPropertySource(String serverName)
public String getServerName()
GlobalProperties.PropertySourcegetServerName in interface GlobalProperties.PropertySourcepublic String get(String key, String defaultValue)
GlobalProperties.PropertySourceget in interface GlobalProperties.PropertySourcepublic int getInt(String key, int defaultValue)
getInt in interface GlobalProperties.PropertySourcepublic boolean getBoolean(String key, boolean defaultValue)
getBoolean in interface GlobalProperties.PropertySourcepublic <T extends Enum<T>> T getEnum(Class<T> enumType, String key, T defaultValue)
getEnum in interface GlobalProperties.PropertySourceCopyright © 2014. All Rights Reserved.