org.apache.tapestry5.internal.transform
Class ParameterWorker

java.lang.Object
  extended by org.apache.tapestry5.internal.transform.ParameterWorker
All Implemented Interfaces:
ComponentClassTransformWorker

public class ParameterWorker
extends Object
implements ComponentClassTransformWorker

Responsible for identifying parameters via the Parameter annotation on component fields. This is one of the most complex of the transformations.


Constructor Summary
ParameterWorker(BindingSource bindingSource, ComponentDefaultProvider defaultProvider)
           
 
Method Summary
static void bind(String parameterName, InternalComponentResources resources, Object value)
          Invoked from generated code as part of the handling of parameter default methods.
 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, toString, wait, wait, wait
 

Constructor Detail

ParameterWorker

public ParameterWorker(BindingSource bindingSource,
                       ComponentDefaultProvider defaultProvider)
Method Detail

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

bind

public static void bind(String parameterName,
                        InternalComponentResources resources,
                        Object value)
Invoked from generated code as part of the handling of parameter default methods.



Copyright © 2006-2009 Apache Software Foundation. All Rights Reserved.