public class InitialValueAnnotationWorker extends java.lang.Object implements SecondaryAnnotationWorker
InitialValue
annotations on methods that don't
have a Persist
annotation (that's handled by
PersistAnnotationWorker
); adds an
IPropertySpecification
for the property, so that its initial
value may be set.Constructor and Description |
---|
InitialValueAnnotationWorker() |
Modifier and Type | Method and Description |
---|---|
boolean |
canEnhance(java.lang.reflect.Method method)
Returns true if the method has the InitialValue annotation.
|
void |
peformEnhancement(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec,
java.lang.reflect.Method method,
org.apache.hivemind.Resource classResource)
Invoked an all workers in the command chain, if any worker returns true
from
SecondaryAnnotationWorker.canEnhance(Method) . |
public InitialValueAnnotationWorker()
public boolean canEnhance(java.lang.reflect.Method method)
canEnhance
in interface SecondaryAnnotationWorker
method
- to checkpublic void peformEnhancement(org.apache.tapestry.enhance.EnhancementOperation op, org.apache.tapestry.spec.IComponentSpecification spec, java.lang.reflect.Method method, org.apache.hivemind.Resource classResource)
SecondaryAnnotationWorker
SecondaryAnnotationWorker.canEnhance(Method)
.peformEnhancement
in interface SecondaryAnnotationWorker
op
- enhancement operationspec
- specification for the component being enhancedmethod
- the methodclassResource
- a resource representing the class; combined with the method a
Location
can be created