|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tuscany.sca.core.scope.AbstractScopeContainer<KEY>
org.apache.tuscany.sca.core.scope.CompositeScopeContainer<KEY>
public class CompositeScopeContainer<KEY>
A scope context which manages atomic component instances keyed by composite
| Field Summary |
|---|
| Fields inherited from class org.apache.tuscany.sca.core.scope.AbstractScopeContainer |
|---|
component, lifecycleState, scope, wrappers |
| Fields inherited from interface org.apache.tuscany.sca.core.scope.ScopeContainer |
|---|
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STOPPED, STOPPING, UNINITIALIZED |
| Constructor Summary | |
|---|---|
CompositeScopeContainer(RuntimeComponent component)
|
|
| Method Summary | |
|---|---|
InstanceWrapper |
getAssociatedWrapper(KEY contextId)
Returns an implementation instance associated with the current scope context. |
InstanceWrapper |
getWrapper(KEY contextId)
Returns an instance wrapper associated with the current scope context, creating one if necessary |
void |
start()
Starts the Lifecycle. |
void |
stop()
Stops the Lifecycle. |
| Methods inherited from class org.apache.tuscany.sca.core.scope.AbstractScopeContainer |
|---|
addWrapperReference, checkInit, createInstanceWrapper, getComponent, getLifecycleState, getScope, isEagerInit, onEvent, registerWrapper, remove, returnWrapper, setComponent, setLifecycleState, startContext, stopContext, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeScopeContainer(RuntimeComponent component)
| Method Detail |
|---|
public void stop()
ScopeContainer
stop in interface ScopeContainer<KEY>stop in class AbstractScopeContainer<KEY>
public InstanceWrapper getWrapper(KEY contextId)
throws TargetResolutionException
ScopeContainer
getWrapper in interface ScopeContainer<KEY>getWrapper in class AbstractScopeContainer<KEY>contextId - the id for the scope context
TargetResolutionException - if there was a problem instantiating the target instance
public InstanceWrapper getAssociatedWrapper(KEY contextId)
throws TargetResolutionException
ScopeContainerTargetNotFoundException is thrown.
getAssociatedWrapper in interface ScopeContainer<KEY>getAssociatedWrapper in class AbstractScopeContainer<KEY>contextId - the id for the scope context
TargetResolutionException - if there was a problem instantiating the target instancepublic void start()
ScopeContainer
start in interface ScopeContainer<KEY>start in class AbstractScopeContainer<KEY>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||