Package jakarta.faces.event
Class PhaseEvent
java.lang.Object
java.util.EventObject
jakarta.faces.event.PhaseEvent
- All Implemented Interfaces:
Serializable
public class PhaseEvent extends EventObject
PhaseEvent represents the beginning or ending of processing for a particular phase of the request
processing lifecycle, for the request encapsulated by the specified FacesContext
.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PhaseEvent(FacesContext context, PhaseId phaseId, Lifecycle lifecycle)
Construct a new event object from the specified parameters. -
Method Summary
Modifier and Type Method Description FacesContext
getFacesContext()
Return theFacesContext
for the request being processed.PhaseId
getPhaseId()
Return thePhaseId
representing the current request processing lifecycle phase.
-
Constructor Details
-
PhaseEvent
Construct a new event object from the specified parameters. The specified
Lifecycle
will be the source of this event.- Parameters:
context
-FacesContext
for the current requestphaseId
- Identifier of the current request processing lifecycle phaselifecycle
- Lifecycle instance- Throws:
NullPointerException
- ifcontext
orphaseId
orLifecycle
isnull
-
-
Method Details
-
getFacesContext
Return the
FacesContext
for the request being processed.- Returns:
- the
FacesContext
for the current request.
-
getPhaseId
Return the
PhaseId
representing the current request processing lifecycle phase.- Returns:
- the phase id
-