org.jboss.portal.server.kernel
Class StartMethod
java.lang.Object
org.jboss.portal.server.kernel.LifeCycleMethod
org.jboss.portal.server.kernel.UpgradeMethod
org.jboss.portal.server.kernel.StartMethod
public class StartMethod
- extends UpgradeMethod
Method Summary |
protected void |
checkState(org.jboss.portal.server.kernel.Entry entry)
Precheck the state of the service. |
protected boolean |
doesDependantPreventsInvoke(org.jboss.portal.server.kernel.Entry entry)
Check that a service which the current service depends on is in the good state |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StartMethod
public StartMethod(Kernel kernel)
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
doesDependantPreventsInvoke
protected boolean doesDependantPreventsInvoke(org.jboss.portal.server.kernel.Entry entry)
- Description copied from class:
UpgradeMethod
- Check that a service which the current service depends on is in the good state
- Specified by:
doesDependantPreventsInvoke
in class UpgradeMethod
- Returns:
- true if the service state it depends on prevent from invoking the method
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