org.openspaces.events.adapter
Class MethodEventListenerAdapter
java.lang.Object
  
org.openspaces.events.adapter.AbstractResultEventListenerAdapter
      
org.openspaces.events.adapter.AbstractReflectionEventListenerAdapter
          
org.openspaces.events.adapter.MethodEventListenerAdapter
- All Implemented Interfaces: 
 - EventListenerAdapter, SpaceDataEventListener, InitializingBean
 
public class MethodEventListenerAdapter
- extends AbstractReflectionEventListenerAdapter
 
The method event listener adapter allows to configure the method name (using
 setMethodName(String) that the event will be delegated to. The default method name is
 handleEvent.
- Author:
 
  - kimchy
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
DEFAULT_LISTENER_METHOD_NAME
public static final String DEFAULT_LISTENER_METHOD_NAME
- Default method name to delegate to: 
handleEvent.
- See Also:
 - Constant Field Values
 
 
MethodEventListenerAdapter
public MethodEventListenerAdapter()
setMethodName
public void setMethodName(String methodName)
- Sets the method name the event listener adapter will delegate the events to.
- Parameters:
 methodName - The method name events will be delegated to
 
 
doGetListenerMethods
protected Method[] doGetListenerMethods()
- Returns a list of all the methods names that match the configured
 
setMethodName(String).
- Specified by:
 doGetListenerMethods in class AbstractReflectionEventListenerAdapter
 
- Returns:
 - A list of all the event listener delegate methods
 
 
 
Copyright © GigaSpaces.