|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xbean.kernel.standard.AggregateCondition
Aggregates a set of ServiceConditions together so the ServiceManager can treat them as a single unit.
Constructor Summary | |
AggregateCondition(Kernel kernel,
ServiceName serviceName,
java.lang.ClassLoader classLoader,
edu.emory.mathcs.backport.java.util.concurrent.locks.Lock lock,
java.util.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. |
java.util.List |
destroy()
Destroys all condtions. |
protected java.util.Set |
getConditions()
Gets a snapshot of the current conditions. |
java.util.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, java.lang.ClassLoader classLoader, edu.emory.mathcs.backport.java.util.concurrent.locks.Lock lock, java.util.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 conditionsMethod Detail |
protected java.util.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 java.util.Set getUnsatisfied()
public boolean isDestroyed()
public java.util.List destroy()
public void awaitSatisfaction() throws java.lang.InterruptedException
java.lang.InterruptedException
- if the thread is interrupted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |