Tuscany Core

org.apache.tuscany.core.runtime
Interface RuntimeContext

All Superinterfaces:
AutowireContext, CompositeContext, ConfigurationContext, Context, ContextFactoryBuilder, EventPublisher, Lifecycle, WireBuilder
All Known Implementing Classes:
RuntimeContextImpl

public interface RuntimeContext
extends AutowireContext, ConfigurationContext

Represents a top-level component context in the runtime, that is the bootstrap context. This context serves as the ultimate root of the context hierarchy. Under it are two separate trees: the rootContext for user components and the systemContext for system components (those that comprise the runtime itself).

Version:
$Rev: 394588 $ $Date: 2006-04-16 20:23:18 -0400 (Sun, 16 Apr 2006) $

Field Summary
static java.lang.String ROOT
           
static java.lang.String RUNTIME
           
static java.lang.String SYSTEM
           
 
Fields inherited from interface org.apache.tuscany.core.context.Lifecycle
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STARTED, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 void addBuilder(WireBuilder builder)
          Deprecated. 
 CompositeContext getRootContext()
          Returns the context that forms the root of the user component tree.
 SystemCompositeContext getSystemContext()
          Returns the context that forms the root of the system component tree.
 
Methods inherited from interface org.apache.tuscany.core.context.AutowireContext
resolveExternalInstance, resolveInstance
 
Methods inherited from interface org.apache.tuscany.core.context.CompositeContext
getComposite, getContext, getParent, getURI, registerModelObject, registerModelObjects, removeContext, setAssemblyContext, setParent, setURI
 
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
 
Methods inherited from interface org.apache.tuscany.core.builder.ContextFactoryBuilder
build
 
Methods inherited from interface org.apache.tuscany.core.builder.WireBuilder
completeTargetChain, connect
 

Field Detail

RUNTIME

static final java.lang.String RUNTIME
See Also:
Constant Field Values

SYSTEM

static final java.lang.String SYSTEM
See Also:
Constant Field Values

ROOT

static final java.lang.String ROOT
See Also:
Constant Field Values
Method Detail

getRootContext

CompositeContext getRootContext()
Returns the context that forms the root of the user component tree. All user components will managed by contexts that are children of this root.

Returns:
the root of the user component tree

getSystemContext

SystemCompositeContext getSystemContext()
Returns the context that forms the root of the system component tree. All system components, components that provide system services needed by the Tuscany runtime itself, will be managed by contexts that are children of this root.

Returns:
the root of the system component tree

addBuilder

@Deprecated
void addBuilder(WireBuilder builder)
Deprecated. 

Adds a wire builder to the runtime


Tuscany Core

-