|
|||||||||
| 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<java.lang.Thread>
org.apache.tuscany.sca.core.scope.RequestScopeContainer
public class RequestScopeContainer
A scope context which manages atomic component instances keyed on the current request context
| 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 | |
|---|---|
RequestScopeContainer(RuntimeComponent component)
|
|
| Method Summary | |
|---|---|
protected InstanceWrapper |
getInstanceWrapper(boolean create)
|
InstanceWrapper |
getWrapper(java.lang.Thread contextId)
Returns an instance wrapper associated with the current scope context, creating one if necessary |
void |
onEvent(Event event)
Accepts and event and acts on it |
void |
start()
Starts the Lifecycle. |
void |
stop()
Stops the Lifecycle. |
| Methods inherited from class org.apache.tuscany.sca.core.scope.AbstractScopeContainer |
|---|
addWrapperReference, checkInit, createInstanceWrapper, getAssociatedWrapper, getComponent, getLifecycleState, getScope, isEagerInit, 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 RequestScopeContainer(RuntimeComponent component)
| Method Detail |
|---|
public void onEvent(Event event)
RuntimeEventListener
onEvent in interface RuntimeEventListeneronEvent in class AbstractScopeContainer<java.lang.Thread>event - The event to act onpublic void start()
ScopeContainer
start in interface ScopeContainer<java.lang.Thread>start in class AbstractScopeContainer<java.lang.Thread>public void stop()
ScopeContainer
stop in interface ScopeContainer<java.lang.Thread>stop in class AbstractScopeContainer<java.lang.Thread>
protected InstanceWrapper getInstanceWrapper(boolean create)
throws TargetResolutionException
TargetResolutionException
public InstanceWrapper getWrapper(java.lang.Thread contextId)
throws TargetResolutionException
ScopeContainer
getWrapper in interface ScopeContainer<java.lang.Thread>getWrapper in class AbstractScopeContainer<java.lang.Thread>contextId - the id for the scope context
TargetResolutionException - if there was a problem instantiating the target instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||