|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CompositeContext
A context which contains child component contexts.
Field Summary |
---|
Fields inherited from interface org.apache.tuscany.core.context.Lifecycle |
---|
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STARTED, STOPPED, STOPPING, UNINITIALIZED |
Method Summary | |
---|---|
org.apache.tuscany.model.assembly.Composite |
getComposite()
Deprecated. |
Context |
getContext(java.lang.String name)
Returns the child context associated with a given name |
CompositeContext |
getParent()
Returns the parent context, or null if the context does not have one |
java.lang.String |
getURI()
|
void |
registerModelObject(org.apache.tuscany.model.assembly.Extensible model)
Adds a runtime artifact represented by the model object to the composite context by merging it with existing artifacts. |
void |
registerModelObjects(java.util.List<? extends org.apache.tuscany.model.assembly.Extensible> models)
Adds runtime artifacts represented by the set of model objects to the composite context by merging them with existing artifacts. |
void |
removeContext(java.lang.String name)
|
void |
setAssemblyContext(org.apache.tuscany.model.assembly.AssemblyContext context)
Deprecated. |
void |
setParent(CompositeContext parent)
Sets the parent context |
void |
setURI(java.lang.String uri)
|
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 |
---|
java.lang.String getURI()
void setURI(java.lang.String uri)
void setAssemblyContext(org.apache.tuscany.model.assembly.AssemblyContext context)
CompositeContext getParent()
void setParent(CompositeContext parent)
void registerModelObjects(java.util.List<? extends org.apache.tuscany.model.assembly.Extensible> models) throws ConfigurationException
Part
types.
ConfigurationException
Component
,
ModuleComponent
,
AtomicComponent
,
EntryPoint
,
ExternalService
void registerModelObject(org.apache.tuscany.model.assembly.Extensible model) throws ConfigurationException
Part
types.
ConfigurationException
Component
,
ModuleComponent
,
AtomicComponent
,
EntryPoint
,
ExternalService
Context getContext(java.lang.String name)
@Deprecated org.apache.tuscany.model.assembly.Composite getComposite()
void removeContext(java.lang.String name)
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |