public class MemorySizeProperty extends IntegerProperty
RuntimeProperty.RuntimePropertyListener| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
valueAsString |
initialValue, value, wasExplicitlySet| Modifier | Constructor and Description |
|---|---|
protected |
MemorySizeProperty(PropertyDefinition<java.lang.Integer> propertyDefinition) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getStringValue()
Get internal value representation as String.
|
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) |
void |
resetValue()
Reset to initial value (default or defined in connection string/Properties)
|
void |
setValueInternal(java.lang.Integer value,
java.lang.String valueAsString,
ExceptionInterceptor exceptionInterceptor)
Internal method for setting property value; ignoring the RUNTIME_NOT_MODIFIABLE flag.
|
checkRangeaddListener, getInitialValue, getPropertyDefinition, getValue, invokeListeners, isExplicitlySet, removeListener, setValue, setValue, setValueInternalprotected MemorySizeProperty(PropertyDefinition<java.lang.Integer> propertyDefinition)
public void initializeFrom(java.util.Properties extractFrom,
ExceptionInterceptor exceptionInterceptor)
RuntimeProperty
This value will also be the initial one, i.e. RuntimeProperty.resetValue() will reset to this value, not the default one.
If extractFrom does not contain such property then this RuntimeProperty remains unchanged.
initializeFrom in interface RuntimeProperty<java.lang.Integer>initializeFrom in class AbstractRuntimeProperty<java.lang.Integer>extractFrom - Properties object containing key-value pairs usually passed from connection string.exceptionInterceptor - exceptionInterceptorpublic void initializeFrom(javax.naming.Reference ref,
ExceptionInterceptor exceptionInterceptor)
initializeFrom in interface RuntimeProperty<java.lang.Integer>initializeFrom in class AbstractRuntimeProperty<java.lang.Integer>public java.lang.String getStringValue()
RuntimePropertygetStringValue in interface RuntimeProperty<java.lang.Integer>getStringValue in class AbstractRuntimeProperty<java.lang.Integer>public void setValueInternal(java.lang.Integer value,
java.lang.String valueAsString,
ExceptionInterceptor exceptionInterceptor)
AbstractRuntimePropertysetValueInternal in class AbstractRuntimeProperty<java.lang.Integer>value - valuevalueAsString - value represented by StringexceptionInterceptor - exception interceptorpublic void resetValue()
RuntimePropertyresetValue in interface RuntimeProperty<java.lang.Integer>resetValue in class AbstractRuntimeProperty<java.lang.Integer>