private class AbstractSettingsManager.ConfigurableObject extends Object
Modifier and Type | Field and Description |
---|---|
private String |
key |
private Method |
method |
private WeakReference<Object> |
target |
Constructor and Description |
---|
ConfigurableObject(Method method,
Object target,
String key)
Constructs a new
ConfigurableObject
|
Modifier and Type | Method and Description |
---|---|
void |
configure(Object val)
Configures this object with the specified value.
|
void |
configure(SettingValue<?> val)
Configures this object with the specified value.
|
boolean |
equals(Object obj) |
String |
getKey() |
Method |
getMethod() |
WeakReference<Object> |
getTarget() |
int |
hashCode() |
private void |
logAndThrowError(Object val,
Throwable t) |
String |
toString() |
private final Method method
private final WeakReference<Object> target
private final String key
public Method getMethod()
public WeakReference<Object> getTarget()
public String getKey()
public void configure(SettingValue<?> val) throws ConfigurationException
val
- the value
ConfigurationException
- if an error occurspublic void configure(Object val) throws ConfigurationException
ConfigurationException
.
val
- the value
ConfigurationException
- if an error occursprivate void logAndThrowError(Object val, Throwable t) throws ConfigurationException
ConfigurationException
Copyright © 2012-2015 52north.org. All Rights Reserved.