public class ModeAnnotationRegistry extends AbstractAnnotationRegistry implements SpaceBeforePrimaryListener, SpaceAfterPrimaryListener, SpaceBeforeBackupListener, SpaceAfterBackupListener
When the application starts beans that has one or more of the anotnation PreBackup,
PostBackup, PrePrimary, PostPrimary are registered in this bean, and when
events arrive they are routed to the registered beans' methods.
| Constructor and Description |
|---|
ModeAnnotationRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAfterBackup(AfterSpaceModeChangeEvent event)
Invoked after a space changes its mode to
SpaceMode.BACKUP. |
void |
onAfterPrimary(AfterSpaceModeChangeEvent event)
Invoked after a space changes its mode to
SpaceMode.PRIMARY. |
void |
onBeforeBackup(BeforeSpaceModeChangeEvent event)
Invoked before a space changes its mode to
SpaceMode.BACKUP. |
void |
onBeforePrimary(BeforeSpaceModeChangeEvent event)
Invoked before a space changes its mode to
SpaceMode.PRIMARY. |
protected void |
validateMethod(Class<?> annotation,
Method method) |
fireEvent, registerAnnotationprotected void validateMethod(Class<?> annotation, Method method)
validateMethod in class AbstractAnnotationRegistrypublic void onBeforePrimary(BeforeSpaceModeChangeEvent event)
SpaceMode.PRIMARY.onBeforePrimary in interface SpaceBeforePrimaryListenerpublic void onAfterPrimary(AfterSpaceModeChangeEvent event)
SpaceMode.PRIMARY.onAfterPrimary in interface SpaceAfterPrimaryListenerpublic void onBeforeBackup(BeforeSpaceModeChangeEvent event)
SpaceMode.BACKUP.onBeforeBackup in interface SpaceBeforeBackupListenerpublic void onAfterBackup(AfterSpaceModeChangeEvent event)
SpaceMode.BACKUP.onAfterBackup in interface SpaceAfterBackupListenerCopyright © GigaSpaces.