org.apache.tapestry.annotations
Class EventListenerAnnotationWorker
java.lang.Object
org.apache.tapestry.annotations.EventListenerAnnotationWorker
- All Implemented Interfaces:
- SecondaryAnnotationWorker
public class EventListenerAnnotationWorker
- extends Object
- implements SecondaryAnnotationWorker
Performs EventListener annotation enhancements on components.
- Author:
- jkuhnert
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventListenerAnnotationWorker
public EventListenerAnnotationWorker()
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 operationspec - specification for the component being enhancedmethod - the methodclassResource - a resource representing the class; combined with the method a
Location can be created
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.