|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LifecycleListener<T>
A listener for observing LifecycleEvents
on IOC beans.
Method Summary | |
---|---|
boolean |
isObserveableEventType(Class<? extends LifecycleEvent<T>> eventType)
Check if this listener observes this event type. |
void |
observeEvent(LifecycleEvent<T> event)
This method is called when a LifecycleEvent is called such that
isObserveableEventType(Class) returns true for this listener and
event. |
Method Detail |
---|
void observeEvent(LifecycleEvent<T> event)
LifecycleEvent
is called such that
isObserveableEventType(Class)
returns true for this listener and
event.
If LifecycleEvent.veto()
is called in this method, any pending
listeners will be cancelled and callback of
LifecycleEvent#fireAsync(LifecycleCallback)
will be invoked with a
failure result.
event
- The event being observed.boolean isObserveableEventType(Class<? extends LifecycleEvent<T>> eventType)
eventType
- A type of subclass of LifecycleEvent
.
|
Errai 3.0.1-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |