|
|||||||||
| 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.Object>
org.apache.tuscany.sca.core.scope.HttpSessionScopeContainer
public class HttpSessionScopeContainer
A scope context which manages atomic component instances keyed on HTTP session
| 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 | |
|---|---|
HttpSessionScopeContainer(RuntimeComponent component)
|
|
| Method Summary | |
|---|---|
protected InstanceWrapper |
getInstanceWrapper(boolean create)
|
InstanceWrapper |
getWrapper(java.lang.Object 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 HttpSessionScopeContainer(RuntimeComponent component)
| Method Detail |
|---|
public void onEvent(Event event)
RuntimeEventListener
onEvent in interface RuntimeEventListeneronEvent in class AbstractScopeContainer<java.lang.Object>event - The event to act onpublic void start()
ScopeContainer
start in interface ScopeContainer<java.lang.Object>start in class AbstractScopeContainer<java.lang.Object>public void stop()
ScopeContainer
stop in interface ScopeContainer<java.lang.Object>stop in class AbstractScopeContainer<java.lang.Object>
protected InstanceWrapper getInstanceWrapper(boolean create)
throws TargetResolutionException
TargetResolutionException
public InstanceWrapper getWrapper(java.lang.Object contextId)
throws TargetResolutionException
ScopeContainer
getWrapper in interface ScopeContainer<java.lang.Object>getWrapper in class AbstractScopeContainer<java.lang.Object>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 | ||||||||