public class ThreadManagedMetaBeanProperty extends MetaBeanProperty
name, PROPERTY_SET_PREFIX, type| Constructor | Description |
|---|---|
ThreadManagedMetaBeanProperty(java.lang.Class declaringClass,
java.lang.String name,
java.lang.Class type,
Closure initialValueCreator) |
Constructs a new ThreadManagedBeanProperty for the given arguments
|
ThreadManagedMetaBeanProperty(java.lang.Class declaringClass,
java.lang.String name,
java.lang.Class type,
java.lang.Object iv) |
Constructs a new ThreadManagedBeanProperty for the given arguments
|
| Modifier and Type | Method | Description |
|---|---|---|
MetaMethod |
getGetter() |
Get the getter method.
|
java.lang.Object |
getInitialValue() |
Retrieves the initial value of the ThreadBound property
|
java.lang.Object |
getInitialValue(java.lang.Object object) |
|
MetaMethod |
getSetter() |
Get the setter method.
|
void |
setInitialValueCreator(Closure callable) |
Closure responsible for creating the initial value of thread-managed bean properties
|
getField, getModifiers, getProperty, setField, setPropertygetGetterName, getName, getSetterName, getTypepublic ThreadManagedMetaBeanProperty(java.lang.Class declaringClass,
java.lang.String name,
java.lang.Class type,
java.lang.Object iv)
declaringClass - The class that declares the propertyname - The name of the propertytype - The type of the propertyiv - The properties initial valuepublic ThreadManagedMetaBeanProperty(java.lang.Class declaringClass,
java.lang.String name,
java.lang.Class type,
Closure initialValueCreator)
declaringClass - The class that declares the propertyname - The name of the propertytype - The type of the propertyinitialValueCreator - The closure responsible for creating the initial valuepublic java.lang.Object getInitialValue()
public java.lang.Object getInitialValue(java.lang.Object object)
public void setInitialValueCreator(Closure callable)
callable - The closure responsible for creating the initial valuepublic MetaMethod getGetter()
MetaBeanPropertygetGetter in class MetaBeanPropertypublic MetaMethod getSetter()
MetaBeanPropertygetSetter in class MetaBeanProperty