class PropertyManager extends Object
| Modifier and Type | Field and Description |
|---|---|
private static Logger |
log
.
|
private Map<String,Property<?>> |
properties
.
|
| Constructor and Description |
|---|
PropertyManager() |
| Modifier and Type | Method and Description |
|---|---|
<T> Property<T> |
getProperty(PropertyDescriptor<T> desc)
Returns a property or null if it cannot be found.
|
private <T> Property<T> |
getProperty(String propertyName,
Class<T> type)
Returns a property or null if it cannot be found.
|
<T> T |
getPropertyValue(PropertyDescriptor<T> desc)
Returns a property value or null if it cannot be found.
|
(package private) <T> void |
parseProperty(PropertyDescriptor<T> desc,
String value)
Set a context property to a new value.
|
(package private) <T> void |
setProperty(PropertyDescriptor<T> desc,
T value)
Set a context property to a new value.
|
private final Map<String,Property<?>> properties
PropertyManager()
public <T> T getPropertyValue(PropertyDescriptor<T> desc) throws NullPointerException
T - the property parameter typedesc - the property descriptorNullPointerException - if the descriptor argument is nullpublic <T> Property<T> getProperty(PropertyDescriptor<T> desc) throws NullPointerException
T - the property parameter typedesc - the property descriptorNullPointerException - if the descriptor argument is nullprivate <T> Property<T> getProperty(String propertyName, Class<T> type) throws NullPointerException
T - the property parameter typepropertyName - the name of the propertytype - the property typeNullPointerException - if any argument is null<T> void setProperty(PropertyDescriptor<T> desc, T value) throws NullPointerException
T - the property parameter typedesc - the property descriptorvalue - the property valueNullPointerException - if the descriptor argument is null<T> void parseProperty(PropertyDescriptor<T> desc, String value) throws NullPointerException, IllegalArgumentException
T - the property parameter typedesc - the property descriptorvalue - the property valueNullPointerException - if the descriptor argument or the value is nullIllegalArgumentException - if the string value cannot be converted to the property typeCopyright © 2015 eXo Platform SAS. All Rights Reserved.