org.openspaces.events.adapter
Class MethodDynamicEventTemplateProviderAdapter
java.lang.Object
  
org.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
      
org.openspaces.events.adapter.MethodDynamicEventTemplateProviderAdapter
- All Implemented Interfaces: 
 - DynamicEventTemplateProvider, InitializingBean
 
public class MethodDynamicEventTemplateProviderAdapter
- extends AbstractReflectionDynamicEventTemplateProviderAdapter
 
The method event template provider adapter allows to configure the method name (using
 setMethodName(String) that the template request will be delegated to. The default method name is
 getDynamicTemplate.
- Since:
 
  - 9.1.1
 
- Author:
 
  - Itai Frenkel
 
 
 
 
 
 
| 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
 
 
MethodDynamicEventTemplateProviderAdapter
public MethodDynamicEventTemplateProviderAdapter()
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
 
 
doGetListenerMethod
protected Method doGetListenerMethod()
- Returns a list of all the methods names that match the configured
 
setMethodName(String).
- Specified by:
 doGetListenerMethod in class AbstractReflectionDynamicEventTemplateProviderAdapter
 
- Returns:
 - A list of all the event listener delegate methods
 
 
 
Copyright © GigaSpaces.