From cd911a1ce5bb8abf2a6c796e32fcf61ef0c91fbc Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 21 Nov 2009 07:41:39 +0000 Subject: Moving site branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@882843 13f79535-47bb-0310-9956-ffa450edef68 --- .../core/context/scope/RequestScopeContext.html | 510 +++++++++++++++++++++ 1 file changed, 510 insertions(+) create mode 100644 site/branches/site-20060730-mvnbased/src/site/resources/javadoc/tuscany-core/org/apache/tuscany/core/context/scope/RequestScopeContext.html (limited to 'site/branches/site-20060730-mvnbased/src/site/resources/javadoc/tuscany-core/org/apache/tuscany/core/context/scope/RequestScopeContext.html') diff --git a/site/branches/site-20060730-mvnbased/src/site/resources/javadoc/tuscany-core/org/apache/tuscany/core/context/scope/RequestScopeContext.html b/site/branches/site-20060730-mvnbased/src/site/resources/javadoc/tuscany-core/org/apache/tuscany/core/context/scope/RequestScopeContext.html new file mode 100644 index 0000000000..92c45d0cbe --- /dev/null +++ b/site/branches/site-20060730-mvnbased/src/site/resources/javadoc/tuscany-core/org/apache/tuscany/core/context/scope/RequestScopeContext.html @@ -0,0 +1,510 @@ + + + + + + + +RequestScopeContext (Tuscany Core incubating-M1 API) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Tuscany Core +
+ + + +
+ +

+ +org.apache.tuscany.core.context.scope +
+Class RequestScopeContext

+
+java.lang.Object
+  extended by org.apache.tuscany.core.context.impl.AbstractLifecycle
+      extended by org.apache.tuscany.core.context.scope.AbstractScopeContext
+          extended by org.apache.tuscany.core.context.scope.RequestScopeContext
+
+
+
All Implemented Interfaces:
java.util.EventListener, Lifecycle, RuntimeEventListener, ScopeContext
+
+
+
+
public class RequestScopeContext
extends AbstractScopeContext
+ + +

+An implementation of a request-scoped component container. This scope contexts eagerly starts contexts when + a RequestStart event is received. If a contained context has an implementation marked to eagerly initialized, + the an instance will be created at that time as well. Contained contexts are shutdown when a RequestEnd + event is received in reverse order to which their implementation instances were created. +

+ +

+

+
Version:
+
$Rev: 396511 $ $Date: 2006-04-24 06:56:40 -0400 (Mon, 24 Apr 2006) $
+
+
+ +

+ + + + + + + +
+Field Summary
+ + + + + + + +
Fields inherited from class org.apache.tuscany.core.context.scope.AbstractScopeContext
contextFactories, eventContext
+ + + + + + + +
Fields inherited from class org.apache.tuscany.core.context.impl.AbstractLifecycle
lifecycleState, name
+ + + + + + + +
Fields inherited from interface org.apache.tuscany.core.context.Lifecycle
CONFIG_ERROR, ERROR, INITIALIZED, INITIALIZING, RUNNING, STARTED, STOPPED, STOPPING, UNINITIALIZED
+  + + + + + + + + + + +
+Constructor Summary
RequestScopeContext(EventContext eventContext) + +
+           
+  + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+Method Summary
+ ContextgetContext(java.lang.String ctxName) + +
+          Returns a context bound to the given name or null if the component does not exist.
+ ContextgetContextByKey(java.lang.String ctxName, + java.lang.Object key) + +
+          Returns a context bound to the given name and scoped to the given key or null if the context does not exist
+ booleanisCacheable() + +
+          Returns whether implementation instances may be held for the duration of an wire
+ voidonEvent(Event event) + +
+           
+ voidregisterFactory(ContextFactory<Context> configuration) + +
+          Adds a context factory to the scope
+ voidremoveContext(java.lang.String ctxName) + +
+          Removes a context with the given name, determining the scope key from the thread context
+ voidremoveContextByKey(java.lang.String ctxName, + java.lang.Object key) + +
+          Removes a context bound to the given name and scope key
+ voidstart() + +
+          Starts the Lifecycle.
+ voidstop() + +
+          Stops the Lifecycle.
+ + + + + + + +
Methods inherited from class org.apache.tuscany.core.context.scope.AbstractScopeContext
checkInit, getEventContext, getInstance, registerFactories
+ + + + + + + +
Methods inherited from class org.apache.tuscany.core.context.impl.AbstractLifecycle
addListener, addListener, getLifecycleState, getListeners, getName, publish, removeListener, setName, toString
+ + + + + + + +
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
+ + + + + + + +
Methods inherited from interface org.apache.tuscany.core.context.Lifecycle
getLifecycleState, getName, setName
+  +

+ + + + + + + + +
+Constructor Detail
+ +

+RequestScopeContext

+
+public RequestScopeContext(EventContext eventContext)
+
+
+ + + + + + + + +
+Method Detail
+ +

+onEvent

+
+public void onEvent(Event event)
+
+
+
+
+
+
+ +

+start

+
+public void start()
+
+
Description copied from interface: Lifecycle
+
Starts the Lifecycle. +

+

+
+
+
+
+ +

+stop

+
+public void stop()
+
+
Description copied from interface: Lifecycle
+
Stops the Lifecycle. +

+

+
+
+
+
+ +

+isCacheable

+
+public boolean isCacheable()
+
+
Description copied from interface: ScopeContext
+
Returns whether implementation instances may be held for the duration of an wire +

+

+
+
+
+
+ +

+registerFactory

+
+public void registerFactory(ContextFactory<Context> configuration)
+
+
Description copied from interface: ScopeContext
+
Adds a context factory to the scope +

+

+
+
+
+
+ +

+getContext

+
+public Context getContext(java.lang.String ctxName)
+
+
Description copied from interface: ScopeContext
+
Returns a context bound to the given name or null if the component does not exist. The returned context is bound + to a key determined from the thread context. +

+

+
+
+
+
+ +

+getContextByKey

+
+public Context getContextByKey(java.lang.String ctxName,
+                               java.lang.Object key)
+
+
Description copied from interface: ScopeContext
+
Returns a context bound to the given name and scoped to the given key or null if the context does not exist +

+

+
+
+
+
+ +

+removeContext

+
+public void removeContext(java.lang.String ctxName)
+
+
Description copied from interface: ScopeContext
+
Removes a context with the given name, determining the scope key from the thread context +

+

+
+
+
+
+ +

+removeContextByKey

+
+public void removeContextByKey(java.lang.String ctxName,
+                               java.lang.Object key)
+
+
Description copied from interface: ScopeContext
+
Removes a context bound to the given name and scope key +

+

+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+Tuscany Core +
+ + + +
+- + + -- cgit v1.2.3