Package groovy.beans
Class DefaultPropertyAccessor
java.lang.Object
groovy.beans.DefaultPropertyAccessor
- All Implemented Interfaces:
PropertyAccessor,PropertyReader,PropertyWriter
Default
PropertyAccessor implementation backed by the standard
Groovy property reader and writer.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
Shared accessor instance.
-
-
Constructor Details
-
DefaultPropertyAccessor
public DefaultPropertyAccessor()
-
-
Method Details
-
read
Reads the named property from the supplied owner.- Specified by:
readin interfacePropertyReader- Parameters:
owner- the object that owns the propertypropertyName- the property name- Returns:
- the property value
-
write
Writes the named property on the supplied owner.- Specified by:
writein interfacePropertyWriter- Parameters:
owner- the object that owns the propertypropertyName- the property namevalue- the value to assign
-