org.apache.xbean.kernel
Class ForcedStopException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.apache.xbean.kernel.ForcedStopException
All Implemented Interfaces:
java.io.Serializable

public class ForcedStopException
extends java.lang.Exception

Signafies that a StopStrategies would like the kernel to ignore any unsatified stop conditions and continue to destroy the service.

Since:
2.0
Version:
$Id$
Author:
Dain Sundstrom
See Also:
Serialized Form

Constructor Summary
ForcedStopException(ServiceName serviceName, java.util.Set unsatisfiedConditions)
          Creates a ForcedStopException for the specified service name.
 
Method Summary
 ServiceName getServiceName()
          Gets the name of the service that is to be forceably stopped.
 java.util.Set getUnsatisfiedConditions()
          Gets the conditions that were unsatified when the exception was thrown.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForcedStopException

public ForcedStopException(ServiceName serviceName,
                           java.util.Set unsatisfiedConditions)
Creates a ForcedStopException for the specified service name.

Parameters:
serviceName - the name of the service that is to be forceably stopped
unsatisfiedConditions - the unsatisfied conditions that will be ignored
Method Detail

getServiceName

public ServiceName getServiceName()
Gets the name of the service that is to be forceably stopped.

Returns:
the service name

getUnsatisfiedConditions

public java.util.Set getUnsatisfiedConditions()
Gets the conditions that were unsatified when the exception was thrown.

Returns:
the unsatified conditions that were ignored


Copyright © {inceptionYear}-2006 Apache Software Foundation. All Rights Reserved.