|
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 | |
---|---|
Composite |
getComposite()
Deprecated. |
Context |
getContext(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 |
String |
getURI()
|
void |
registerModelObject(Extensible model)
Adds a runtime artifact represented by the model object to the composite context by merging it with existing artifacts. |
void |
registerModelObjects(List<? extends Extensible> models)
Adds runtime artifacts represented by the set of model objects to the composite context by merging them with existing artifacts. |
void |
removeContext(String name)
|
void |
setAssemblyContext(AssemblyContext context)
Deprecated. |
void |
setParent(CompositeContext parent)
Sets the parent context |
void |
setURI(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 |
---|
String getURI()
void setURI(String uri)
void setAssemblyContext(AssemblyContext context)
CompositeContext getParent()
void setParent(CompositeContext parent)
void registerModelObjects(List<? extends Extensible> models) throws ConfigurationException
Part
types.
ConfigurationException
Component
,
ModuleComponent
,
AtomicComponent
,
EntryPoint
,
ExternalService
void registerModelObject(Extensible model) throws ConfigurationException
Part
types.
ConfigurationException
Component
,
ModuleComponent
,
AtomicComponent
,
EntryPoint
,
ExternalService
Context getContext(String name)
@Deprecated Composite getComposite()
void removeContext(String name)
|
Tuscany Core | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |