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
- Author:
- Dain Sundstrom
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,
ClassLoader classLoader,
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 UnsupportedOperationException
- Throws UnsupportedOperationException. Initialize is not a valid operation for a NonRestartableStopCondition
- Overrides:
initialize
in class AggregateCondition
- Throws:
UnsupportedOperationException
- always
getUnsatisfied
public Set getUnsatisfied()
- Gets the unsatisfied conditions.
- Overrides:
getUnsatisfied
in class AggregateCondition
- Returns:
- the unstatisfied conditions
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.