|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xbean.kernel.standard.AggregateCondition
public class AggregateCondition
Aggregates a set of ServiceConditions together so the ServiceManager can treat them as a single unit.
| Constructor Summary | |
|---|---|
AggregateCondition(Kernel kernel,
ServiceName serviceName,
ClassLoader classLoader,
Lock lock,
Set conditions)
Creates an aggregate condition. |
|
| Method Summary | |
|---|---|
protected void |
addCondition(ServiceCondition condition)
Adds a new condition if not already registered. |
void |
awaitSatisfaction()
Causes the current thread to wait until the conditons is satisfied. |
List |
destroy()
Destroys all condtions. |
protected Set |
getConditions()
Gets a snapshot of the current conditions. |
Set |
getUnsatisfied()
Gets the unsatisfied conditions. |
void |
initialize()
Initializes the conditions. |
boolean |
isDestroyed()
Gets the destroyed status. |
protected void |
removeCondition(ServiceCondition condition)
Removes a condition from the registry if present. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AggregateCondition(Kernel kernel,
ServiceName serviceName,
ClassLoader classLoader,
Lock lock,
Set conditions)
kernel - the kernel in which the service is registeredserviceName - the name of the serviceclassLoader - the class loader for the servicelock - the lock for the service managerconditions - the conditions| Method Detail |
|---|
protected Set getConditions()
protected final void addCondition(ServiceCondition condition)
condition - the new conditionprotected final void removeCondition(ServiceCondition condition)
condition - the condition to removepublic void initialize()
public Set getUnsatisfied()
public boolean isDestroyed()
public List destroy()
public void awaitSatisfaction()
throws InterruptedException
InterruptedException - if the thread is interrupted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||