org.apache.xbean.kernel.standard
Class NonRestartableStopCondition
java.lang.Object
org.apache.xbean.kernel.standard.AggregateCondition
org.apache.xbean.kernel.standard.NonRestartableStopCondition
- public class NonRestartableStopCondition
- extends AggregateCondition
A special sub-class of AggregateCondition used to manage the stop conditions of a non-restartable service. This class
will update stop conditions to reflect the stop conditions currently registered with the service factory, when the
initialized or getUnsatisfied methods are called.
- Since:
- 2.0
- Version:
- $Id$
- Author:
- Dain Sundstrom
Method Summary |
java.util.Set |
getUnsatisfied()
Gets the unsatisfied conditions. |
void |
initialize()
Throws UnsupportedOperationException. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonRestartableStopCondition
public NonRestartableStopCondition(Kernel kernel,
ServiceName serviceName,
java.lang.ClassLoader classLoader,
edu.emory.mathcs.backport.java.util.concurrent.locks.Lock lock,
ServiceFactory serviceFactory)
- Creates a NonRestartableStopCondition.
- Parameters:
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 managerserviceFactory
- the service factory for the service
initialize
public void initialize()
throws java.lang.UnsupportedOperationException
- Throws UnsupportedOperationException. Initialize is not a valid operation for a NonRestartableStopCondition
- Overrides:
initialize
in class AggregateCondition
- Throws:
java.lang.UnsupportedOperationException
- always
getUnsatisfied
public java.util.Set getUnsatisfied()
- Gets the unsatisfied conditions.
- Overrides:
getUnsatisfied
in class AggregateCondition
- Returns:
- the unstatisfied conditions
Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.