Tuscany Core

org.apache.tuscany.core.context
Interface SystemCompositeContext

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

public interface SystemCompositeContext
extends AutowireContext, ScopeAwareContext, ConfigurationContext

Marker type for system composite contexts

Version:
$Rev: 408581 $ $Date: 2006-05-21 23:34:24 -0700 (Sun, 21 May 2006) $

Field Summary
 
Fields inherited from interface org.apache.tuscany.core.context.Lifecycle
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STARTED, STOPPED, STOPPING, UNINITIALIZED
 
Fields inherited from interface org.apache.tuscany.core.context.Lifecycle
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STARTED, STOPPED, STOPPING, UNINITIALIZED
 
Method Summary
 void registerJavaObject(String name, Class<?> service, Object instance)
          Register a simple Java Object as a system component.
 
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.context.ScopeAwareContext
getScopeContexts
 
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
 

Method Detail

registerJavaObject

void registerJavaObject(String name,
                        Class<?> service,
                        Object instance)
                        throws ConfigurationException
Register a simple Java Object as a system component. This is primarily intended for use by bootstrap code to create the initial configuration components.

Parameters:
name - the name of the resulting component
service -
instance - the Object that will become the component's implementation
Throws:
ConfigurationException

Tuscany Core

-