org.apache.tapestry.annotations
Interface SecondaryAnnotationWorker

All Known Implementing Classes:
EventListenerAnnotationWorker, InitialValueAnnotationWorker

public interface SecondaryAnnotationWorker

A chain-of-command interface for secondary annotation workers; workers that must execute after other workers.

Author:
Howard M. Lewis Ship

Method Summary
 boolean canEnhance(Method method)
          Sees if the particular worker can process the method (because it handles an annotation associated with the method).
 void peformEnhancement(EnhancementOperation op, IComponentSpecification spec, Method method, org.apache.hivemind.Resource classResource)
          Invoked an all workers in the command chain, if any worker returns true from canEnhance(Method).
 

Method Detail

canEnhance

boolean canEnhance(Method method)
Sees if the particular worker can process the method (because it handles an annotation associated with the method).

Parameters:
method - to check
Returns:
true if the worker should be invoked, false otherwise

peformEnhancement

void peformEnhancement(EnhancementOperation op,
                       IComponentSpecification spec,
                       Method method,
                       org.apache.hivemind.Resource classResource)
Invoked an all workers in the command chain, if any worker returns true from canEnhance(Method).

Parameters:
op - enhancement operation
spec - specification for the component being enhanced
method - the method
classResource - a resource representing the class; combined with the method a Location can be created


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