public abstract class AbstractLifecycleListener extends Object implements LifecycleListener
LifecycleListener interface
which delegates events to a single method.| Constructor and Description |
|---|
AbstractLifecycleListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterAttach(LifecycleEvent event)
Invoked after the instance has been attached.
|
void |
afterClear(LifecycleEvent event)
Invoked after state is cleared.
|
void |
afterDelete(LifecycleEvent event)
Invoked after the instance transferred to a deleted state.
|
void |
afterDetach(LifecycleEvent event)
Invoked after the instance has been detached.
|
void |
afterDirty(LifecycleEvent event)
Invoked after the first change is applied.
|
void |
afterDirtyFlushed(LifecycleEvent event)
Invoked after the first change is applied to a flushed instance.
|
void |
afterLoad(LifecycleEvent event)
Invoked after state has been loaded into the instance.
|
void |
afterPersist(LifecycleEvent event)
Invoked when an instance is persisted.
|
void |
afterRefresh(LifecycleEvent event)
Invoked after state has been refreshed.
|
void |
afterStore(LifecycleEvent event)
Invoked just after store.
|
void |
beforeAttach(LifecycleEvent event)
Invoked before the instance is attached.
|
void |
beforeClear(LifecycleEvent event)
Invoked before state is cleared.
|
void |
beforeDelete(LifecycleEvent event)
Invoked before the instance transferred to a deleted state.
|
void |
beforeDetach(LifecycleEvent event)
Invoked before the instance is detached.
|
void |
beforeDirty(LifecycleEvent event)
Invoked before the first change is applied.
|
void |
beforeDirtyFlushed(LifecycleEvent event)
Invoked before the first change is applied to a flushed instance.
|
void |
beforePersist(LifecycleEvent event)
Invoked before an instance is persisted.
|
void |
beforeStore(LifecycleEvent event)
Invoked just prior to store.
|
protected void |
eventOccurred(LifecycleEvent event)
Should be implemented to handle the specific lifecycle event.
|
protected void eventOccurred(LifecycleEvent event)
public void beforePersist(LifecycleEvent event)
PersistListenerbeforePersist in interface PersistListenerpublic void afterPersist(LifecycleEvent event)
PersistListenerafterPersist in interface PersistListenerpublic void beforeClear(LifecycleEvent event)
ClearListenerbeforeClear in interface ClearListenerpublic void afterClear(LifecycleEvent event)
ClearListenerafterClear in interface ClearListenerpublic void afterLoad(LifecycleEvent event)
LoadListenerafterLoad in interface LoadListenerpublic void beforeDelete(LifecycleEvent event)
DeleteListenerbeforeDelete in interface DeleteListenerpublic void afterDelete(LifecycleEvent event)
DeleteListenerafterDelete in interface DeleteListenerpublic void beforeStore(LifecycleEvent event)
StoreListenerbeforeStore in interface StoreListenerpublic void afterStore(LifecycleEvent event)
StoreListenerafterStore in interface StoreListenerpublic void beforeDirty(LifecycleEvent event)
DirtyListenerbeforeDirty in interface DirtyListenerpublic void afterDirty(LifecycleEvent event)
DirtyListenerafterDirty in interface DirtyListenerpublic void beforeDirtyFlushed(LifecycleEvent event)
DirtyListenerbeforeDirtyFlushed in interface DirtyListenerpublic void afterDirtyFlushed(LifecycleEvent event)
DirtyListenerafterDirtyFlushed in interface DirtyListenerpublic void afterRefresh(LifecycleEvent event)
LoadListenerafterRefresh in interface LoadListenerpublic void beforeDetach(LifecycleEvent event)
DetachListenerbeforeDetach in interface DetachListenerpublic void afterDetach(LifecycleEvent event)
DetachListenerafterDetach in interface DetachListenerpublic void beforeAttach(LifecycleEvent event)
AttachListenerbeforeAttach in interface AttachListenerpublic void afterAttach(LifecycleEvent event)
AttachListenerafterAttach in interface AttachListenerCopyright © 2006–2020 Apache Software Foundation. All rights reserved.