org.apache.xbean.kernel
Class StartStrategies

java.lang.Object
  extended byorg.apache.xbean.kernel.StartStrategies

public final class StartStrategies
extends java.lang.Object

This class contains the built-in common start startegies.

Since:
2.0
Version:
$Id$
Author:
Dain Sundstrom

Field Summary
static StartStrategy ASYNCHRONOUS
          This strategy attempts to start the service asynchronously.
static StartStrategy BLOCK
          This strategy wait until the service start.
static StartStrategy SYNCHRONOUS
          This strategy attempts to immedately start the service.
static StartStrategy UNREGISTER
          This strategy attempts to start the service immedately.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNCHRONOUS

public static final StartStrategy SYNCHRONOUS
This strategy attempts to immedately start the service. When there are unsatisfied conditions, this strategy will leave the service in the STARTING state, and throw an UnsatisfiedConditionsException to the caller. When there is a start error, the service will be destroyed and the exception will be rethrown to the caller.


ASYNCHRONOUS

public static final StartStrategy ASYNCHRONOUS
This strategy attempts to start the service asynchronously. When there are unsatisfied conditions, this strategy will leave the service in the STARTING state, and caller will not recieve any exceptions. When there is a start error the service will be destroyed adn the exception will be sent to the service montior. The caller will not recieve any start exception.


BLOCK

public static final StartStrategy BLOCK
This strategy wait until the service start. This strategy blocks until all unsatisfied conditons are satisfied. When there is a start error, the service will be destroyed and the exception will be rethrown to the caller.


UNREGISTER

public static final StartStrategy UNREGISTER
This strategy attempts to start the service immedately. When there are unsatisfied conditions or a start error the dervice will be destroyed and unregistered. In this case an UnsatisfiedConditionsException or the start error will be thrown to the caller.



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