com.atlassian.plugin.event.impl
Class AnnotationListenerMethodSelector

java.lang.Object
  extended by com.atlassian.plugin.event.impl.AnnotationListenerMethodSelector
All Implemented Interfaces:
ListenerMethodSelector

public class AnnotationListenerMethodSelector
extends java.lang.Object
implements ListenerMethodSelector

Listener method selector that looks for a specific marker annotation


Constructor Summary
AnnotationListenerMethodSelector()
           
AnnotationListenerMethodSelector(java.lang.Class<? extends java.lang.annotation.Annotation> markerAnnotation)
           
 
Method Summary
 boolean isListenerMethod(java.lang.reflect.Method method)
          Determines if the method is a listener method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationListenerMethodSelector

public AnnotationListenerMethodSelector()

AnnotationListenerMethodSelector

public AnnotationListenerMethodSelector(java.lang.Class<? extends java.lang.annotation.Annotation> markerAnnotation)
Method Detail

isListenerMethod

public boolean isListenerMethod(java.lang.reflect.Method method)
Description copied from interface: ListenerMethodSelector
Determines if the method is a listener method

Specified by:
isListenerMethod in interface ListenerMethodSelector
Parameters:
method - The possible listener method. Cannot be null.
Returns:
True if this is a listener method


Copyright © 2012 Atlassian. All Rights Reserved.