|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.xbean.kernel.StoppedServiceCondition
This condition that requires another service be in the STOPPED state to be satisfied.
| Constructor Summary | |
StoppedServiceCondition(ServiceName dependency)
Creates a condition that requires the specified service be in the STOPPED state to be satisfied. |
|
| Method Summary | |
void |
destroy()
Destroys the condition. The condition must release all resources and stop any started threads. Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception. |
void |
initialize(ServiceConditionContext context)
Initializes the condition. The conition is now allowed reserve unique resources and start threads. mehtod should never block the thread nor should it throw any exceptions. Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception. |
boolean |
isSatisfied()
Gets statisfied state of this conditon. Once a condition returns true from this method it is assumed to be satisfied until destroyed and reinitialized. Note: this method is called from within a critical lock within the kernel, so do not block the thread or call back into the kernel. This method should never throw an exception. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StoppedServiceCondition(ServiceName dependency)
dependency - the service that must be stopped| Method Detail |
public void initialize(ServiceConditionContext context)
initialize in interface ServiceConditioncontext - context information for this conditionpublic boolean isSatisfied()
isSatisfied in interface ServiceConditionpublic void destroy()
destroy in interface ServiceCondition
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||