Class Phase

    • Constructor Detail

      • Phase

        public Phase()
    • Method Detail

      • doPhase

        public void doPhase​(FacesContext context,
                            Lifecycle lifecycle,
                            ListIterator<PhaseListener> listeners)
        Performs PhaseListener processing and invokes the execute method of the Phase.
        Parameters:
        context - the FacesContext for the current request
        lifecycle - the lifecycle for this request
      • execute

        public abstract void execute​(FacesContext context)
                              throws FacesException

        Perform all state transitions required by the current phase of the request processing Lifecycle for a particular request.

        Parameters:
        context - FacesContext for the current request being processed
        Throws:
        FacesException - if a processing error occurred while executing this phase
      • getId

        public abstract PhaseId getId()
        Returns:
        the current Lifecycle Phase identifier.
      • handleAfterPhase

        protected void handleAfterPhase​(FacesContext context,
                                        ListIterator<PhaseListener> listenersIterator,
                                        PhaseEvent event)
        Handle afterPhase PhaseListener events.
        Parameters:
        context - the FacesContext for the current request
        listenersIterator - a ListIterator for the PhaseListeners that need to be invoked
        event - the event to pass to each of the invoked listeners
      • handleBeforePhase

        protected void handleBeforePhase​(FacesContext context,
                                         ListIterator<PhaseListener> listenersIterator,
                                         PhaseEvent event)
        Handle beforePhase PhaseListener events.
        Parameters:
        context - the FacesContext for the current request
        listenersIterator - a ListIterator for the PhaseListeners that need to be invoked
        event - the event to pass to each of the invoked listeners