|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.kernel.RunningServiceCondition
public class RunningServiceCondition
This condition that requires another service be in the RUNNING state to be satisfied.
Constructor Summary | |
---|---|
RunningServiceCondition(ServiceName dependency,
boolean ownedRelationship,
boolean stopOnServiceShutdown)
Creates a condition that requires the specified service be in the RUNNING state to be satisfied. |
Method Summary | |
---|---|
void |
destroy()
Destroys the condition. |
void |
initialize(ServiceConditionContext context)
Initializes the condition. |
boolean |
isSatisfied()
Gets statisfied state of this conditon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RunningServiceCondition(ServiceName dependency, boolean ownedRelationship, boolean stopOnServiceShutdown)
dependency
- the service that must be runningownedRelationship
- if true the condition will register the relationshipstopOnServiceShutdown
- if the our service should be stopped when the specified service shutsdownMethod Detail |
---|
public void initialize(ServiceConditionContext context)
initialize
in interface ServiceCondition
context
- context information for this conditionpublic boolean isSatisfied()
isSatisfied
in interface ServiceCondition
public void destroy()
destroy
in interface ServiceCondition
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |