org.apache.tapestry.internal.transform
Class InjectContainerWorker

java.lang.Object
  extended by org.apache.tapestry.internal.transform.InjectContainerWorker
All Implemented Interfaces:
ComponentClassTransformWorker

public class InjectContainerWorker
extends Object
implements ComponentClassTransformWorker

Identifies the InjectContainer annotation and adds code to initialize it to the core component.


Constructor Summary
InjectContainerWorker()
           
 
Method Summary
static String buildCastExceptionMessage(Component component, String fieldName, String fieldType)
           
 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

InjectContainerWorker

public InjectContainerWorker()
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

buildCastExceptionMessage

public static String buildCastExceptionMessage(Component component,
                                               String fieldName,
                                               String fieldType)


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