Class AbstractAnnotationRegistry
java.lang.Object
org.openspaces.core.space.AbstractAnnotationRegistry
- Direct Known Subclasses:
ModeAnnotationRegistry, SpaceStatusChangedAnnotationRegistry
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidInvokes the registered beans' methods passing them the space mode change event.voidregisterAnnotation(Class<?> annotation, Object object, Method method) Registers the bean as a listener for a event specified by the annotation.protected abstract voidvalidateMethod(Class<?> annotation, Method method)
-
Constructor Details
-
AbstractAnnotationRegistry
public AbstractAnnotationRegistry()
-
-
Method Details
-
registerAnnotation
public void registerAnnotation(Class<?> annotation, Object object, Method method) throws IllegalArgumentException Registers the bean as a listener for a event specified by the annotation. When an event fires the specified bean method will be invoked.- Parameters:
annotation- The annotation that specifies the event the bean is registered to.object- The bean instance.method- The bean's method to invoke when the event fires.- Throws:
IllegalArgumentException- When the specified method has invalid arguments or annotation
-
validateMethod
-
fireEvent
-