Tuscany Core

org.apache.tuscany.core.context
Interface AtomicContext

All Superinterfaces:
Context, EventPublisher, Lifecycle
All Known Implementing Classes:
SystemAtomicContext

public interface AtomicContext
extends Context

A runtime entity that manages an atomic (i.e. leaf-type) artifact.

Version:
$Rev: 395110 $ $Date: 2006-04-18 22:32:30 -0400 (Tue, 18 Apr 2006) $

Field Summary
 
Fields inherited from interface org.apache.tuscany.core.context.Lifecycle
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STARTED, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 void destroy()
          Notifies the context of a destroy event
 java.lang.Object getTargetInstance()
          Returns the target instance associated with the context.
 void init()
          Notifies the context of an initialization event
 boolean isDestroyable()
          Returns whether the context should be called back when its scope ends
 boolean isEagerInit()
          Returns whether the context should be eagerly initialized
 
Methods inherited from interface org.apache.tuscany.core.context.Context
getInstance
 
Methods inherited from interface org.apache.tuscany.core.context.EventPublisher
addListener, addListener, publish, removeListener
 
Methods inherited from interface org.apache.tuscany.core.context.Lifecycle
getLifecycleState, getName, setName, start, stop
 

Method Detail

isEagerInit

boolean isEagerInit()
Returns whether the context should be eagerly initialized


init

void init()
          throws TargetException
Notifies the context of an initialization event

Throws:
TargetException

destroy

void destroy()
             throws TargetException
Notifies the context of a destroy event

Throws:
TargetException

isDestroyable

boolean isDestroyable()
Returns whether the context should be called back when its scope ends


getTargetInstance

java.lang.Object getTargetInstance()
                                   throws TargetException
Returns the target instance associated with the context. A target instance is the actual object a request is dispatched to sans proxy wire chain.

Throws:
TargetException

Tuscany Core

-