org.apache.tapestry.enhance
Class SpecifiedPropertyWorker
java.lang.Object
org.apache.tapestry.enhance.SpecifiedPropertyWorker
- All Implemented Interfaces:
- EnhancementWorker
public class SpecifiedPropertyWorker
- extends java.lang.Object
- implements EnhancementWorker
Responsible for adding properties to a class corresponding to specified properties in the
component's specification.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
- See Also:
org.apache.tapestry.annotations.PersistAnnotationWorker
,
org.apache.tapestry.annotations.InitialValueAnnotationWorker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpecifiedPropertyWorker
public SpecifiedPropertyWorker()
performEnhancement
public void performEnhancement(EnhancementOperation op,
IComponentSpecification spec)
- Iterates over the specified properties, creating an enhanced property for each (a field, an
accessor, a mutator). Persistent properties will invoke
Tapestry.fireObservedChange(IComponent, String, Object)
in thier
mutator.
- Specified by:
performEnhancement
in interface EnhancementWorker
addProperty
public void addProperty(EnhancementOperation op,
java.lang.String propertyName,
java.lang.String specifiedType,
boolean persistent,
java.lang.String initialValue,
org.apache.hivemind.Location location)
setErrorLog
public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)
setBindingSource
public void setBindingSource(BindingSource bindingSource)