Package org.openspaces.events.adapter
Class MethodDynamicEventTemplateProviderAdapter
java.lang.Object
org.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
org.openspaces.events.adapter.MethodDynamicEventTemplateProviderAdapter
- All Implemented Interfaces:
DynamicEventTemplateProvider,org.springframework.beans.factory.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
FieldsModifier and TypeFieldDescriptionstatic final StringDefault method name to delegate to:handleEvent.Fields inherited from class org.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MethodReturns a list of all the methods names that match the configuredsetMethodName(String).voidsetMethodName(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
-
Field Details
-
DEFAULT_LISTENER_METHOD_NAME
Default method name to delegate to:handleEvent.- See Also:
-
-
Constructor Details
-
MethodDynamicEventTemplateProviderAdapter
public MethodDynamicEventTemplateProviderAdapter()
-
-
Method Details
-
setMethodName
Sets the method name the event listener adapter will delegate the events to.- Parameters:
methodName- The method name events will be delegated to
-
doGetListenerMethod
Returns a list of all the methods names that match the configuredsetMethodName(String).- Specified by:
doGetListenerMethodin classAbstractReflectionDynamicEventTemplateProviderAdapter- Returns:
- A list of all the event listener delegate methods
-