org.jtheque.core.managers.lifecycle.phases
Class PhasesManagerImpl

java.lang.Object
  extended by org.jtheque.core.managers.lifecycle.phases.PhasesManagerImpl
All Implemented Interfaces:
IPhasesManager

public final class PhasesManagerImpl
extends java.lang.Object
implements IPhasesManager

A phases manager implementation.

Author:
Baptiste Wicht

Constructor Summary
PhasesManagerImpl(java.util.List<LifeCyclePhase> phases)
          Construct a new PhasesManagerImpl.
 
Method Summary
 boolean isDone()
          Indicating if all the phases are done.
 void launchNextPhase()
          Launch the next phase.
 int numberOfPhases()
          Return the number of phases who are too to launch.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhasesManagerImpl

public PhasesManagerImpl(java.util.List<LifeCyclePhase> phases)
Construct a new PhasesManagerImpl.

Parameters:
phases - The phases to manage.
Method Detail

launchNextPhase

public void launchNextPhase()
Description copied from interface: IPhasesManager
Launch the next phase.

Specified by:
launchNextPhase in interface IPhasesManager

numberOfPhases

public int numberOfPhases()
Description copied from interface: IPhasesManager
Return the number of phases who are too to launch.

Specified by:
numberOfPhases in interface IPhasesManager
Returns:
The phases.

isDone

public boolean isDone()
Description copied from interface: IPhasesManager
Indicating if all the phases are done.

Specified by:
isDone in interface IPhasesManager
Returns:
true if the phases are all done else false.


Copyright © 2009 JTheque. All Rights Reserved.