com.atlassian.event.internal
Class AnnotatedMethodsListenerHandler

java.lang.Object
  extended by com.atlassian.event.internal.AnnotatedMethodsListenerHandler
All Implemented Interfaces:
ListenerHandler

public final class AnnotatedMethodsListenerHandler
extends java.lang.Object
implements ListenerHandler

A listener handler that will check for single parameter methods annotated with the given annotation.

The default annotation for methods is EventListener.

Since:
2.0
See Also:
EventListener

Constructor Summary
AnnotatedMethodsListenerHandler()
           
AnnotatedMethodsListenerHandler(java.lang.Class annotation)
           
 
Method Summary
 java.util.List<? extends ListenerInvoker> getInvokers(java.lang.Object listener)
          Retrieves the list of invokers for the given listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedMethodsListenerHandler

public AnnotatedMethodsListenerHandler()

AnnotatedMethodsListenerHandler

public AnnotatedMethodsListenerHandler(java.lang.Class annotation)
Method Detail

getInvokers

public java.util.List<? extends ListenerInvoker> getInvokers(java.lang.Object listener)
Description copied from interface: ListenerHandler
Retrieves the list of invokers for the given listener.

Specified by:
getInvokers in interface ListenerHandler
Parameters:
listener - the listener object to get invokers for
Returns:
a list of invokers linked to the listener object.


Copyright © 2006-2009 Atlassian. All Rights Reserved.