org.apache.xbean.kernel
Class ForcedStopException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.xbean.kernel.ForcedStopException
All Implemented Interfaces:
Serializable

public class ForcedStopException
extends Exception

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

Since:
2.0
Author:
Dain Sundstrom
See Also:
Serialized Form

Constructor Summary
ForcedStopException(ServiceName serviceName, 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.
 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,
                           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 Set getUnsatisfiedConditions()
Gets the conditions that were unsatified when the exception was thrown.

Returns:
the unsatified conditions that were ignored


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.