Apache Tuscany SCA Kernel Sub-Project

org.apache.tuscany.spi.component
Interface ScopeContainer

All Superinterfaces:
EventListener, Lifecycle, RuntimeEventListener

public interface ScopeContainer
extends Lifecycle, RuntimeEventListener

Manages the lifecycle and visibility of instances associated with a set of AtomicComponents.

Version:
$Rev: 433173 $ $Date: 2006-08-20 23:35:52 -0700 (Sun, 20 Aug 2006) $
See Also:
SCAObject

Field Summary
 
Fields inherited from interface org.apache.tuscany.spi.Lifecycle
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 Object getInstance(AtomicComponent component)
          Returns an instance associated with the current component
 Scope getScope()
          Returns the scope value representing the scope context
 void register(AtomicComponent component)
          Registers a component with the scope component
 void setWorkContext(WorkContext workContext)
          Sets the work context used by the scope container
 
Methods inherited from interface org.apache.tuscany.spi.Lifecycle
getLifecycleState, start, stop
 
Methods inherited from interface org.apache.tuscany.spi.event.RuntimeEventListener
onEvent
 

Method Detail

getScope

Scope getScope()
Returns the scope value representing the scope context


setWorkContext

void setWorkContext(WorkContext workContext)
Sets the work context used by the scope container


register

void register(AtomicComponent component)
Registers a component with the scope component


getInstance

Object getInstance(AtomicComponent component)
                   throws TargetException
Returns an instance associated with the current component

Throws:
TargetException

Apache Tuscany SCA Kernel Sub-Project

-