Top Description Methods
jakarta.faces.event

public Interface PhaseListener

extends EventListener, Serializable
Known Direct Implementers
com.sun.faces.facelets.tag.faces.core.PhaseListenerHandler.LazyPhaseListener, com.sun.faces.lifecycle.ELResolverInitPhaseListener, com.sun.faces.lifecycle.HttpMethodRestrictionsPhaseListener
Imports
java.io.Serializable, java.util.EventListener

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 TypeMethod and Description
public default void
afterPhase(PhaseEvent
the phase event.
event
)

Handle a notification that the processing for a particular phase has just been completed.

public default void
beforePhase(PhaseEvent
the phase event.
event
)

Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.

public PhaseId

Returns:

the phase id.
getPhaseId
()

Return the identifier of the request processing phase during which this listener is interested in processing PhaseEvent events.

Method Detail

afterPhaseback to summary
public default void afterPhase(PhaseEvent event)

Handle a notification that the processing for a particular phase has just been completed.

Parameters
event:PhaseEvent

the phase event.

beforePhaseback to summary
public default void beforePhase(PhaseEvent event)

Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.

Parameters
event:PhaseEvent

the phase event.

getPhaseIdback to summary
public PhaseId getPhaseId()

Return the identifier of the request processing phase during which this listener is interested in processing PhaseEvent events. Legal values are the singleton instances defined by the PhaseId class, including PhaseId.ANY_PHASE to indicate an interest in being notified for all standard phases.

Returns:PhaseId

the phase id.