GigaSpaces XAP 10.0.1 API

org.openspaces.events.adapter
Class AnnotationDynamicEventTemplateProviderAdapter

java.lang.Object
  extended by org.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
      extended by org.openspaces.events.adapter.AnnotationDynamicEventTemplateProviderAdapter
All Implemented Interfaces:
DynamicEventTemplateProvider, InitializingBean

public class AnnotationDynamicEventTemplateProviderAdapter
extends AbstractReflectionDynamicEventTemplateProviderAdapter

The annotation event template provider adapter uses DynamicEventTemplate annotation in order to find the event template provider to delegate to.

Since:
9.1.1
Author:
Itai Frenkel

Field Summary
 
Fields inherited from class org.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
logger
 
Constructor Summary
AnnotationDynamicEventTemplateProviderAdapter()
           
 
Method Summary
protected  Method doGetListenerMethod()
          Goes over all the methods in the delegate and adds them as event listeners if they have DynamicEventTemplate annotation.
 
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
 

Constructor Detail

AnnotationDynamicEventTemplateProviderAdapter

public AnnotationDynamicEventTemplateProviderAdapter()
Method Detail

doGetListenerMethod

protected Method doGetListenerMethod()
Goes over all the methods in the delegate and adds them as event listeners if they have DynamicEventTemplate annotation.

Specified by:
doGetListenerMethod in class AbstractReflectionDynamicEventTemplateProviderAdapter
Returns:
A list of all the event listener delegate methods

GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.