Package jakarta.faces.event
Class PhaseEvent
java.lang.Object
java.util.EventObject
jakarta.faces.event.PhaseEvent
- All Implemented Interfaces:
Serializable
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:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionPhaseEvent(FacesContext context, PhaseId phaseId, Lifecycle lifecycle) Construct a new event object from the specified parameters. -
Method Summary
Modifier and TypeMethodDescriptionReturn theFacesContextfor the request being processed.Return thePhaseIdrepresenting the current request processing lifecycle phase.Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
PhaseEvent
Construct a new event object from the specified parameters. The specified
Lifecyclewill be the source of this event.- Parameters:
context-FacesContextfor the current requestphaseId- Identifier of the current request processing lifecycle phaselifecycle- Lifecycle instance- Throws:
NullPointerException- ifcontextorphaseIdorLifecycleisnull
-
-
Method Details
-
getFacesContext
Return the
FacesContextfor the request being processed.- Returns:
- the
FacesContextfor the current request.
-
getPhaseId
Return the
PhaseIdrepresenting the current request processing lifecycle phase.- Returns:
- the phase id
-