|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openspaces.events.adapter.AbstractReflectionDynamicEventTemplateProviderAdapter
public abstract class AbstractReflectionDynamicEventTemplateProviderAdapter
Base class for reflection driven invocation of event template provider method.
The event listener method os found and delegated to an object
configured using setDelegate(Object).
Subclasses must implement the doGetListenerMethod() in order to list the possible
event listener method.
| Field Summary | |
|---|---|
protected Log |
logger
Logger available to subclasses |
| Constructor Summary | |
|---|---|
AbstractReflectionDynamicEventTemplateProviderAdapter()
|
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected abstract Method |
doGetListenerMethod()
Subclasses should implement this in order to provide a list of all the possible event listener delegate methods. |
protected Object |
getDelegate()
Returns the event listener delegate. |
Object |
getDynamicTemplate()
Delegates the event listener invocation to the appropriate method of the configured setDelegate(Object). |
boolean |
isMethodFound()
|
void |
setDelegate(Object delegate)
The event listener delegate that will be searched for event listening methods and will have its method executed. |
void |
setFailSilentlyIfMethodNotFound(boolean failSilently)
|
void |
setUseFastReflection(boolean useFastReflection)
Controls if the listener will be invoked using fast reflection or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Log logger
| Constructor Detail |
|---|
public AbstractReflectionDynamicEventTemplateProviderAdapter()
| Method Detail |
|---|
public void setDelegate(Object delegate)
protected Object getDelegate()
public void setUseFastReflection(boolean useFastReflection)
true.
public void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanpublic Object getDynamicTemplate()
setDelegate(Object).
getDynamicTemplate in interface DynamicEventTemplateProviderpublic void setFailSilentlyIfMethodNotFound(boolean failSilently)
failSilently - - when set to true afterPropertiesSet() will not raise an exception if an
annotated method is not found.public boolean isMethodFound()
protected abstract Method doGetListenerMethod()
|
GigaSpaces XAP 10.1 API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||