org.apache.tapestry.internal.transform
Class ComponentLifecycleMethodWorker
java.lang.Object
org.apache.tapestry.internal.transform.ComponentLifecycleMethodWorker
- All Implemented Interfaces:
- ComponentClassTransformWorker
public class ComponentLifecycleMethodWorker
- extends Object
- implements ComponentClassTransformWorker
Converts one of the methods of Component into a chain of command that, itself,
invokes certain methods (render phase methods) marked with an annotation, or named in a specific way.
ComponentLifecycleMethodWorker
public ComponentLifecycleMethodWorker(TransformMethodSignature lifecycleMethodSignature,
Class<? extends Annotation> methodAnnotation,
boolean reverse)
- Normal method invocation: parent class, then methods in ascending alphabetical order. Reverse order: method in
descending alphabetical order, then parent class.
- Parameters:
lifecycleMethodSignature - the signature of the method to be implemented in the component classmethodAnnotation - the class of the corresponding annotationreverse - if true, the normal method invocation order is reversed
toString
public String toString()
- Overrides:
toString in class Object
transform
public void transform(ClassTransformation transformation,
MutableComponentModel model)
- Description copied from interface:
ComponentClassTransformWorker
- Invoked to perform a transformation on an as-yet unloaded component class, represented by the
ClassTransformation instance. In some cases, the worker may make changes to the component model -- for example,
a worker that deals with parameters may update the model to reflect those parameters.
- Specified by:
transform in interface ComponentClassTransformWorker
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.