org.jboss.portal.server.kernel
Class UpgradeMethod

java.lang.Object
  extended by org.jboss.portal.server.kernel.LifeCycleMethod
      extended by org.jboss.portal.server.kernel.UpgradeMethod
Direct Known Subclasses:
CreateMethod, StartMethod

public abstract class UpgradeMethod
extends LifeCycleMethod


Field Summary
 
Fields inherited from class org.jboss.portal.server.kernel.LifeCycleMethod
kernel
 
Constructor Summary
protected UpgradeMethod(Kernel kernel)
           
 
Method Summary
protected abstract  boolean doesDependantPreventsInvoke(org.jboss.portal.server.kernel.Entry entry)
          Check that a service which the current service depends on is in the good state
 State invoke(org.jboss.portal.server.kernel.Entry entry)
           
 
Methods inherited from class org.jboss.portal.server.kernel.LifeCycleMethod
checkState, invokeMethod, invokeMethodOnDependsOnMe, invokeOnDependsOnMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeMethod

protected UpgradeMethod(Kernel kernel)
Method Detail

invoke

public State invoke(org.jboss.portal.server.kernel.Entry entry)
             throws TransitionNotPossibleException,
                    ServiceFailureException
Specified by:
invoke in class LifeCycleMethod
Throws:
TransitionNotPossibleException
ServiceFailureException

doesDependantPreventsInvoke

protected abstract boolean doesDependantPreventsInvoke(org.jboss.portal.server.kernel.Entry entry)
Check that a service which the current service depends on is in the good state

Returns:
true if the service state it depends on prevent from invoking the method