org.apache.xbean.kernel.standard
Class NonRestartableStopCondition

java.lang.Object
  extended byorg.apache.xbean.kernel.standard.AggregateCondition
      extended byorg.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

Constructor Summary
NonRestartableStopCondition(Kernel kernel, ServiceName serviceName, java.lang.ClassLoader classLoader, edu.emory.mathcs.backport.java.util.concurrent.locks.Lock lock, ServiceFactory serviceFactory)
          Creates a NonRestartableStopCondition.
 
Method Summary
 java.util.Set getUnsatisfied()
          Gets the unsatisfied conditions.
 void initialize()
          Throws UnsupportedOperationException.
 
Methods inherited from class org.apache.xbean.kernel.standard.AggregateCondition
addCondition, awaitSatisfaction, destroy, getConditions, isDestroyed, removeCondition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 registered
serviceName - the name of the service
classLoader - the class loader for the service
lock - the lock for the service manager
serviceFactory - the service factory for the service
Method Detail

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.