org.jboss.portal.server.kernel
Class DestroyMethod

java.lang.Object
  extended by org.jboss.portal.server.kernel.LifeCycleMethod
      extended by org.jboss.portal.server.kernel.DowngradeMethod
          extended by org.jboss.portal.server.kernel.DestroyMethod

public class DestroyMethod
extends DowngradeMethod


Field Summary
 
Fields inherited from class org.jboss.portal.server.kernel.LifeCycleMethod
kernel
 
Constructor Summary
DestroyMethod(Kernel kernel)
           
 
Method Summary
protected  void checkState(org.jboss.portal.server.kernel.Entry entry)
          Precheck the state of the service.
protected  void invokeMethod(org.jboss.portal.server.kernel.Entry entry)
          Apply the lifecycle method and do the transition as well.
protected  void invokeMethodOnDependsOnMe(org.jboss.portal.server.kernel.Entry entry)
          Apply the lifecycle method on one of the service that depends on the current service
 
Methods inherited from class org.jboss.portal.server.kernel.DowngradeMethod
invoke
 
Methods inherited from class org.jboss.portal.server.kernel.LifeCycleMethod
invokeOnDependsOnMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DestroyMethod

public DestroyMethod(Kernel kernel)
Method Detail

checkState

protected void checkState(org.jboss.portal.server.kernel.Entry entry)
                   throws TransitionNotPossibleException
Description copied from class: LifeCycleMethod
Precheck the state of the service.

Specified by:
checkState in class LifeCycleMethod
Throws:
TransitionNotPossibleException - if the transition is not possible

invokeMethod

protected void invokeMethod(org.jboss.portal.server.kernel.Entry entry)
                     throws java.lang.Exception
Description copied from class: LifeCycleMethod
Apply the lifecycle method and do the transition as well.

Specified by:
invokeMethod in class LifeCycleMethod
Throws:
java.lang.Exception - the possible wrapper runtime exception

invokeMethodOnDependsOnMe

protected void invokeMethodOnDependsOnMe(org.jboss.portal.server.kernel.Entry entry)
                                  throws KernelException
Description copied from class: LifeCycleMethod
Apply the lifecycle method on one of the service that depends on the current service

Specified by:
invokeMethodOnDependsOnMe in class LifeCycleMethod
Throws:
KernelException - thrown by the recursive call