org.apache.tapestry.internal.transform
Class ComponentLifecycleMethodWorker

java.lang.Object
  extended by 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.


Constructor Summary
ComponentLifecycleMethodWorker(TransformMethodSignature lifecycleMethodSignature, Class<? extends Annotation> methodAnnotation, boolean reverse)
          Normal method invocation: parent class, then methods in ascending alphabetical order.
 
Method Summary
 String toString()
           
 void transform(ClassTransformation transformation, MutableComponentModel model)
          Invoked to perform a transformation on an as-yet unloaded component class, represented by the ClassTransformation instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 class
methodAnnotation - the class of the corresponding annotation
reverse - if true, the normal method invocation order is reversed
Method Detail

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.