Tuscany Core

org.apache.tuscany.core.context
Interface Lifecycle

All Known Subinterfaces:
AtomicContext, AutowireContext, CompositeContext, Context, EntryPointContext, ExternalServiceContext, RuntimeContext, ScopeAwareContext, ScopeContext, SystemCompositeContext
All Known Implementing Classes:
AbstractCompositeContext, AbstractContext, AbstractScopeContext, CompositeContextImpl, CompositeScopeContext, EntryPointContextImpl, ExternalServiceContextImpl, ModuleScopeContext, RequestScopeContext, RuntimeContextImpl, SessionScopeContext, StatelessScopeContext, SystemAtomicContext, SystemCompositeContextImpl, SystemEntryPointContext, SystemExternalServiceContext

public interface Lifecycle

Version:
$Rev$ $Date$

Field Summary
static int CONFIG_ERROR
           
static int ERROR
           
static int INITIALIZED
           
static int INITIALIZING
           
static int RUNNING
           
static int STARTED
           
static int STOPPED
           
static int STOPPING
           
static int UNINITIALIZED
           
 
Method Summary
 int getLifecycleState()
          Returns the lifecycle state
 java.lang.String getName()
          Returns the name of the Lifecycle.
 void setName(java.lang.String name)
          Sets the name of the Lifecycle.
 void start()
          Starts the Lifecycle.
 void stop()
          Stops the Lifecycle.
 

Field Detail

CONFIG_ERROR

static final int CONFIG_ERROR
See Also:
Constant Field Values

UNINITIALIZED

static final int UNINITIALIZED
See Also:
Constant Field Values

INITIALIZING

static final int INITIALIZING
See Also:
Constant Field Values

INITIALIZED

static final int INITIALIZED
See Also:
Constant Field Values

STARTED

static final int STARTED
See Also:
Constant Field Values

RUNNING

static final int RUNNING
See Also:
Constant Field Values

STOPPING

static final int STOPPING
See Also:
Constant Field Values

STOPPED

static final int STOPPED
See Also:
Constant Field Values

ERROR

static final int ERROR
See Also:
Constant Field Values
Method Detail

getLifecycleState

int getLifecycleState()
Returns the lifecycle state

See Also:
UNINITIALIZED, INITIALIZING, INITIALIZED, RUNNING, STOPPING, STOPPED

start

void start()
           throws CoreRuntimeException
Starts the Lifecycle.

Throws:
CoreRuntimeException

stop

void stop()
          throws CoreRuntimeException
Stops the Lifecycle.

Throws:
CoreRuntimeException

getName

java.lang.String getName()
Returns the name of the Lifecycle.

Returns:
the name of the Lifecycle

setName

void setName(java.lang.String name)
Sets the name of the Lifecycle.

Parameters:
name - the name of the Lifecycle

Tuscany Core

-