Package jakarta.faces.event
Interface PhaseListener
- All Superinterfaces:
EventListener,Serializable
An interface implemented by objects that wish to be notified at the beginning and ending of processing for each standard phase of the request processing lifecycle.
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterPhase(PhaseEvent event) Handle a notification that the processing for a particular phase has just been completed.voidbeforePhase(PhaseEvent event) Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.Return the identifier of the request processing phase during which this listener is interested in processingPhaseEventevents.
-
Method Details
-
afterPhase
Handle a notification that the processing for a particular phase has just been completed.
- Parameters:
event- the phase event.
-
beforePhase
Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.
- Parameters:
event- the phase event.
-
getPhaseId
PhaseId getPhaseId()Return the identifier of the request processing phase during which this listener is interested in processing
PhaseEventevents. Legal values are the singleton instances defined by thePhaseIdclass, includingPhaseId.ANY_PHASEto indicate an interest in being notified for all standard phases.- Returns:
- the phase id.
-