Interface SystemEventListener
-
- All Superinterfaces:
EventListener,FacesListener
- All Known Subinterfaces:
ViewMapListener
- All Known Implementing Classes:
ExceptionHandler,ExceptionHandlerWrapper
public interface SystemEventListener extends FacesListener
By implementing this class, an object indicates that it is a listener for one or more kinds of
SystemEvents. The exact type of event that will cause the implementing class'sprocessEvent(jakarta.faces.event.SystemEvent)method to be called is indicated by thefacesEventClassargument passed when the listener is installed usingApplication.subscribeToEvent(java.lang.Class<? extends jakarta.faces.event.SystemEvent>, java.lang.Class<?>, jakarta.faces.event.SystemEventListener).- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisListenerForSource(Object source)This method must returntrueif and only if this listener instance is interested in receiving events from the instance referenced by thesourceparameter.voidprocessEvent(SystemEvent event)When called, the listener can assume that any guarantees given in the javadoc for the specificSystemEventsubclass are true.
-
-
-
Method Detail
-
processEvent
void processEvent(SystemEvent event) throws AbortProcessingException
When called, the listener can assume that any guarantees given in the javadoc for the specific
SystemEventsubclass are true.- Parameters:
event- theSystemEventinstance that is being processed.- Throws:
AbortProcessingException- if lifecycle processing should cease for this request.
-
isListenerForSource
boolean isListenerForSource(Object source)
This method must return
trueif and only if this listener instance is interested in receiving events from the instance referenced by thesourceparameter.- Parameters:
source- the source that is inquiring about the appropriateness of sending an event to this listener instance.- Returns:
- the value as specified above
-
-