public class RuntimeProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
RESOURCE_BUNDLE |
| Constructor and Description |
|---|
RuntimeProperties()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBooleanValue(String propertyName,
boolean _default,
boolean required) |
<T> Set<Class<T>> |
getClasses(String propertyName,
Class<T> expectedType)
Gets the possible implementation class for a given property for which the
values are classanames
|
<T> Class<T> |
getClassValue(String propertyName,
Class<T> expectedType,
boolean required) |
<T> T |
getInstanceValue(String propertyName,
Class<T> expectedType,
boolean required) |
int |
getIntValue(String propertyName,
int _default,
boolean required) |
List<String> |
getPropertyValues(String key)
Get a list of possible values for a given key.
|
String |
getStringValue(String propertyName,
String _default,
boolean required) |
public static final String RESOURCE_BUNDLE
public RuntimeProperties()
classLoader - The classloader to work onpublic List<String> getPropertyValues(String key)
key - The key to search forpublic <T> Set<Class<T>> getClasses(String propertyName, Class<T> expectedType)
deploymentProperties - The deployment properties object to useresourceLoader - The resource laoder to use to attemptpropertyName - The name of the property to loadpublic <T> Class<T> getClassValue(String propertyName, Class<T> expectedType, boolean required)
public <T> T getInstanceValue(String propertyName, Class<T> expectedType, boolean required)
public boolean getBooleanValue(String propertyName, boolean _default, boolean required)
public int getIntValue(String propertyName, int _default, boolean required)
Copyright © 2009–2014. All rights reserved.