org.apache.xbean.kernel
Interface StopStrategy
public interface StopStrategy
The StopStrategy interface is used to assist the kernel in determining how to handle problems that occur while
stoping a service.
- Since:
- 2.0
- Author:
- Dain Sundstrom
waitForUnsatisfiedConditions
boolean waitForUnsatisfiedConditions(ServiceName serviceName,
Set conditions)
throws UnsatisfiedConditionsException,
ForcedStopException
- Determines if the kernel should wait for the unsatified conditions to be satisfied.
- Parameters:
serviceName
- the name of the service that has the unsatisfied condtionsconditions
- the unsatisfied condtions
- Returns:
- true if the kernel should wait for the conditions to be satisfied; false if the strategy would like
silently leave the service in the stopping state
- Throws:
UnsatisfiedConditionsException
- the the strategy would like to leave the service in the stopping state
and throw an exception the caller
ForcedStopException
- if the strategy would like to ignore the unsatisfied conditions and continue to
destroy the service
Copyright © 2005-2009 Apache Software Foundation. All Rights Reserved.