Class SpaceStatusChangedAnnotationRegistry
java.lang.Object
org.openspaces.core.space.AbstractAnnotationRegistry
org.openspaces.core.space.status.registery.SpaceStatusChangedAnnotationRegistry
- All Implemented Interfaces:
SpaceStatusChangedEventListener
public class SpaceStatusChangedAnnotationRegistry
extends AbstractAnnotationRegistry
implements SpaceStatusChangedEventListener
Receives space suspend type and space mode change events and routs them to beans that use annotations to register as
listeners on those events using the
SpaceStatusChanged annotation
When the application starts beans that has one or more of the annotation SpaceStatusChanged
are registered in this bean, and when
events arrive they are routed to the registered beans' methods.- Since:
- 14.0.1
- Author:
- Elad Gur
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidvalidateMethod(Class<?> annotation, Method method) Methods inherited from class org.openspaces.core.space.AbstractAnnotationRegistry
fireEvent, registerAnnotation
-
Constructor Details
-
SpaceStatusChangedAnnotationRegistry
public SpaceStatusChangedAnnotationRegistry()
-
-
Method Details
-
validateMethod
- Specified by:
validateMethodin classAbstractAnnotationRegistry
-
onSpaceStatusChanged
- Specified by:
onSpaceStatusChangedin interfaceSpaceStatusChangedEventListener- Parameters:
event- - anSpaceStatusChangedEventthat contain theSuspendTypeand theSpaceMode}
-