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 context property or null if it cannot be found.
|
(package private) <T> Property<T> |
getProperty(String propertyName,
Class<T> type)
Returns a context property 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.
|
<T> Property<? extends T> |
resolveProperty(PropertyDescriptor<T> desc)
Resolve a context property or null if it cannot be resolved.
|
(package private) <T> Property<? extends T> |
resolveProperty(String propertyName,
Class<T> type)
Resolve a context property or null if it cannot be resolved.
|
<T> T |
resolvePropertyValue(PropertyDescriptor<T> desc)
Returns a context property value or null if it cannot be found.
|
(package private) <T> T |
resolvePropertyValue(String propertyName,
Class<T> type)
Returns a context property value or null if it cannot be found.
|
(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> Property<T> getProperty(PropertyDescriptor<T> desc) throws NullPointerException
T - the property parameter typedesc - the property descriptorNullPointerException - if the descriptor argument is null<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 the descriptor argument is nullpublic <T> T resolvePropertyValue(PropertyDescriptor<T> desc) throws NullPointerException
T - the property parameter typedesc - the property descriptorNullPointerException - if the descriptor argument is null<T> T resolvePropertyValue(String propertyName, Class<T> type) throws NullPointerException
T - the property parameter typepropertyName - the name of the propertytype - the property typeNullPointerException - if the descriptor argument is nullpublic <T> Property<? extends T> resolveProperty(PropertyDescriptor<T> desc) throws NullPointerException
T - the property parameter typedesc - the property descriptorNullPointerException - if the descriptor argument is null<T> Property<? extends T> resolveProperty(String propertyName, Class<T> type) throws NullPointerException
T - the property parameter typepropertyName - the name of the propertytype - the property typeNullPointerException - if the descriptor 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 © 2014 eXo Platform SAS. All Rights Reserved.