org.apache.tapestry.annotations
Class EventListenerAnnotationWorker

java.lang.Object
  extended by org.apache.tapestry.annotations.EventListenerAnnotationWorker
All Implemented Interfaces:
SecondaryAnnotationWorker

public class EventListenerAnnotationWorker
extends Object
implements SecondaryAnnotationWorker

Performs EventListener annotation enhancements on components.

Author:
jkuhnert

Constructor Summary
EventListenerAnnotationWorker()
           
 
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 SecondaryAnnotationWorker.canEnhance(Method).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventListenerAnnotationWorker

public EventListenerAnnotationWorker()
Method Detail

canEnhance

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

Specified by:
canEnhance in interface SecondaryAnnotationWorker
Parameters:
method - to check
Returns:
true if the worker should be invoked, false otherwise

peformEnhancement

public 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 SecondaryAnnotationWorker.canEnhance(Method).

Specified by:
peformEnhancement in interface SecondaryAnnotationWorker
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-2011 Apache Software Foundation. All Rights Reserved.