org.jboss.portal.server.kernel
Class UpgradeMethod

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

public abstract class UpgradeMethod
extends LifeCycleMethod

Version:
$Revision: 1.2 $
Author:
Julien Viet

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(Entry entry)
          Check that a service which the current service depends on is in the good state
 State invoke(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(Entry entry)
             throws TransitionNotPossibleException,
                    ServiceFailureException
Specified by:
invoke in class LifeCycleMethod
Throws:
TransitionNotPossibleException
ServiceFailureException

doesDependantPreventsInvoke

protected abstract boolean doesDependantPreventsInvoke(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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.