Class AnnotatedMethodsListenerHandler

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

public final class AnnotatedMethodsListenerHandler extends 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:
  • Constructor Details

    • AnnotatedMethodsListenerHandler

      public AnnotatedMethodsListenerHandler()
    • AnnotatedMethodsListenerHandler

      public AnnotatedMethodsListenerHandler(Class annotationClass)
  • Method Details

    • getInvokers

      public List<ListenerInvoker> getInvokers(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.