GigaSpaces XAP 7.0 API

org.openspaces.events.adapter
Class AnnotationEventListenerAdapter

java.lang.Object
  extended by org.openspaces.events.adapter.AbstractResultEventListenerAdapter
      extended by org.openspaces.events.adapter.AbstractReflectionEventListenerAdapter
          extended by org.openspaces.events.adapter.AnnotationEventListenerAdapter
All Implemented Interfaces:
EventListenerAdapter, SpaceDataEventListener, InitializingBean

public class AnnotationEventListenerAdapter
extends AbstractReflectionEventListenerAdapter

An event listener adapter that uses SpaceDataEvent annotation in order to find event listener methods to delegate to.

Author:
kimchy

Field Summary
 
Fields inherited from class org.openspaces.events.adapter.AbstractReflectionEventListenerAdapter
logger
 
Constructor Summary
AnnotationEventListenerAdapter()
           
 
Method Summary
protected  Method[] doGetListenerMethods()
          Goes over all the methods in the delegate and adds them as event listeners if they have SpaceDataEvent annotation.
 
Methods inherited from class org.openspaces.events.adapter.AbstractReflectionEventListenerAdapter
afterPropertiesSet, getActualEventListener, getDelegate, onEventWithResult, setDelegate, setUseFastRefelction
 
Methods inherited from class org.openspaces.events.adapter.AbstractResultEventListenerAdapter
handleResult, onEvent, setUpdateOrWrite, setUpdateTimeout, setWriteLease
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationEventListenerAdapter

public AnnotationEventListenerAdapter()
Method Detail

doGetListenerMethods

protected Method[] doGetListenerMethods()
Goes over all the methods in the delegate and adds them as event listeners if they have SpaceDataEvent annotation.

Specified by:
doGetListenerMethods in class AbstractReflectionEventListenerAdapter
Returns:
A list of all the event listener delegate methods

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.