Class BaseMethodObserver
- java.lang.Object
-
- com.oracle.coherence.spring.event.BaseMethodObserver
-
- Direct Known Subclasses:
MethodEventObserver
,MethodMapListener
public abstract class BaseMethodObserver extends java.lang.Object
A Coherence event observer implementation that wraps anMethod
.- Since:
- 3.0
- Author:
- Gunnar Hillert
- See Also:
MethodEventObserver
,MethodMapListener
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseMethodObserver(java.lang.String beanName, java.lang.reflect.Method method, ApplicationContext applicationContext)
Create aMethodEventObserver
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getId()
java.util.Set<java.lang.annotation.Annotation>
getObservedQualifiers()
protected java.lang.Object
getTargetBean()
Return the target bean instance to use.boolean
isAsync()
-
-
-
Constructor Detail
-
BaseMethodObserver
protected BaseMethodObserver(java.lang.String beanName, java.lang.reflect.Method method, ApplicationContext applicationContext)
Create aMethodEventObserver
.- Parameters:
beanName
- the spring bean name that has the executable methodmethod
- the method to execute when events are receivedapplicationContext
- spring application context to look up the Spring bean
-
-
Method Detail
-
getTargetBean
protected java.lang.Object getTargetBean()
Return the target bean instance to use.- Returns:
- the actual bean from the
ApplicationContext
usingbeanName
.
-
getId
public java.lang.String getId()
-
getObservedQualifiers
public java.util.Set<java.lang.annotation.Annotation> getObservedQualifiers()
-
isAsync
public boolean isAsync()
-
-