org.jboss.portal.server.kernel
Class LifeCycleMethod
java.lang.Object
org.jboss.portal.server.kernel.LifeCycleMethod
- Direct Known Subclasses:
- DowngradeMethod, UpgradeMethod
public abstract class LifeCycleMethod
- extends java.lang.Object
Method Summary |
protected abstract void |
checkState(org.jboss.portal.server.kernel.Entry entry)
Precheck the state of the service. |
abstract State |
invoke(org.jboss.portal.server.kernel.Entry entry)
|
protected abstract void |
invokeMethod(org.jboss.portal.server.kernel.Entry entry)
Apply the lifecycle method and do the transition as well. |
protected abstract void |
invokeMethodOnDependsOnMe(org.jboss.portal.server.kernel.Entry entry)
Apply the lifecycle method on one of the service that depends on the current service |
protected void |
invokeOnDependsOnMe(org.jboss.portal.server.kernel.Entry entry)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
kernel
protected final Kernel kernel
LifeCycleMethod
protected LifeCycleMethod(Kernel kernel)
invokeOnDependsOnMe
protected void invokeOnDependsOnMe(org.jboss.portal.server.kernel.Entry entry)
invoke
public abstract State invoke(org.jboss.portal.server.kernel.Entry entry)
throws TransitionNotPossibleException,
ServiceFailureException
- Throws:
TransitionNotPossibleException
ServiceFailureException
checkState
protected abstract void checkState(org.jboss.portal.server.kernel.Entry entry)
throws TransitionNotPossibleException
- Precheck the state of the service.
- Throws:
TransitionNotPossibleException
- if the transition is not possible
invokeMethod
protected abstract void invokeMethod(org.jboss.portal.server.kernel.Entry entry)
throws java.lang.Exception
- Apply the lifecycle method and do the transition as well.
- Throws:
java.lang.Exception
- the possible wrapper runtime exception
invokeMethodOnDependsOnMe
protected abstract void invokeMethodOnDependsOnMe(org.jboss.portal.server.kernel.Entry entry)
throws KernelException
- Apply the lifecycle method on one of the service that depends on the current service
- Throws:
KernelException
- thrown by the recursive call