public interface RuntimeProperty<T>
Modifier and Type | Interface and Description |
---|---|
static interface |
RuntimeProperty.RuntimePropertyListener |
Modifier and Type | Method and Description |
---|---|
void |
addListener(RuntimeProperty.RuntimePropertyListener l)
Add listener for this property changes.
|
T |
getInitialValue()
Get initial value (default or defined in connection string/Properties)
|
PropertyDefinition<T> |
getPropertyDefinition() |
java.lang.String |
getStringValue()
Get internal value representation as String.
|
T |
getValue()
Get internal value representation as Object.
|
void |
initializeFrom(java.util.Properties extractFrom,
ExceptionInterceptor exceptionInterceptor)
Explicitly set value of this RuntimeProperty according to the self-titled property value contained in extractFrom.
|
void |
initializeFrom(javax.naming.Reference ref,
ExceptionInterceptor exceptionInterceptor) |
boolean |
isExplicitlySet() |
void |
removeListener(RuntimeProperty.RuntimePropertyListener l) |
void |
resetValue()
Reset to initial value (default or defined in connection string/Properties)
|
void |
setValue(T value)
Set the object value of a property directly.
|
void |
setValue(T value,
ExceptionInterceptor exceptionInterceptor)
Set the object value of a property directly.
|
PropertyDefinition<T> getPropertyDefinition()
void initializeFrom(java.util.Properties extractFrom, ExceptionInterceptor exceptionInterceptor)
This value will also be the initial one, i.e. resetValue()
will reset to this value, not the default one.
If extractFrom does not contain such property then this RuntimeProperty remains unchanged.
extractFrom
- Properties
object containing key-value pairs usually passed from connection string.exceptionInterceptor
- exceptionInterceptorvoid initializeFrom(javax.naming.Reference ref, ExceptionInterceptor exceptionInterceptor)
void resetValue()
boolean isExplicitlySet()
void addListener(RuntimeProperty.RuntimePropertyListener l)
l
- RuntimeProperty.RuntimePropertyListener
void removeListener(RuntimeProperty.RuntimePropertyListener l)
T getValue()
T getInitialValue()
java.lang.String getStringValue()
void setValue(T value)
value
- valuevoid setValue(T value, ExceptionInterceptor exceptionInterceptor)
value
- valueexceptionInterceptor
- exception interceptor