com.atlassian.plugin.event.impl
Class MethodNameListenerMethodSelector

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

public class MethodNameListenerMethodSelector
extends Object
implements ListenerMethodSelector

Listener method selector that makes its determination by matching the method name


Constructor Summary
MethodNameListenerMethodSelector()
           
MethodNameListenerMethodSelector(String s)
           
 
Method Summary
 boolean isListenerMethod(Method method)
          Determines if the listener method has the name as the one configured
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodNameListenerMethodSelector

public MethodNameListenerMethodSelector()

MethodNameListenerMethodSelector

public MethodNameListenerMethodSelector(String s)
Method Detail

isListenerMethod

public boolean isListenerMethod(Method method)
Determines if the listener method has the name as the one configured

Specified by:
isListenerMethod in interface ListenerMethodSelector
Parameters:
method - The method to test
Returns:
True if the method name matches the configured method name, false otherwise


Copyright © 2014 Atlassian. All rights reserved.