GigaSpaces XAP 9.7.2 API

org.openspaces.events.adapter
Class MethodDynamicEventTemplateProviderAdapter

java.lang.Object
  extended by org.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
      extended by 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

Field Summary
static String DEFAULT_LISTENER_METHOD_NAME
          Default method name to delegate to: handleEvent.
 
Fields inherited from class org.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
logger
 
Constructor Summary
MethodDynamicEventTemplateProviderAdapter()
           
 
Method Summary
protected  Method doGetListenerMethod()
          Returns a list of all the methods names that match the configured setMethodName(String).
 void setMethodName(String methodName)
          Sets the method name the event listener adapter will delegate the events to.
 
Methods inherited from class org.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
afterPropertiesSet, getDelegate, getDynamicTemplate, isMethodFound, setDelegate, setFailSilentlyIfMethodNotFound, setUseFastReflection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LISTENER_METHOD_NAME

public static final String DEFAULT_LISTENER_METHOD_NAME
Default method name to delegate to: handleEvent.

See Also:
Constant Field Values
Constructor Detail

MethodDynamicEventTemplateProviderAdapter

public MethodDynamicEventTemplateProviderAdapter()
Method Detail

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

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.