/** * Ask the unit of work to transition to the given {@code phases} sequentially. In each of the phases the * unit of work is responsible for invoking the handlers attached to each phase. * <p/> * By default this sets the Phase and invokes the handlers attached to the phase. * * @param phases The phases to transition to in sequential order */ protected void changePhase(Phase... phases) { for (Phase phase : phases) { setPhase(phase); notifyHandlers(phase); } }
/** * Ask the unit of work to transition to the given {@code phases} sequentially. In each of the phases the * unit of work is responsible for invoking the handlers attached to each phase. * <p/> * By default this sets the Phase and invokes the handlers attached to the phase. * * @param phases The phases to transition to in sequential order */ protected void changePhase(Phase... phases) { for (Phase phase : phases) { setPhase(phase); notifyHandlers(phase); } }
/** * Ask the unit of work to transition to the given {@code phases} sequentially. In each of the phases the * unit of work is responsible for invoking the handlers attached to each phase. * <p/> * By default this sets the Phase and invokes the handlers attached to the phase. * * @param phases The phases to transition to in sequential order */ protected void changePhase(Phase... phases) { for (Phase phase : phases) { setPhase(phase); notifyHandlers(phase); } }