Go to file
Dave Borowitz 3e7ef3cc5f Add a class for propagating request scoping to different threads
Request scopes are all implemented with ThreadLocals, which meant that
RequestScoped data would not be available in any new threads created
from the main request thread. Add a class to wrap Runnables and Callables
so tasks that depend on request scoped objects can be inserted in a
WorkQueue.

Include ScopePropagator implementations for all request scope
types. The GuiceRequestScopePropagator will forward
materialized instances of CurrentUser, RemotePeer SocketAddress,
and the CannonicalWebUrl. To support this, CanonicalWebUrlModule is
not bound as a SINGLETON anymore and HttpIdentifiedUserProvider
implementation now relies on CurrentUser, instead of the WebSession.
This was needed because some fields in the HttpRequest object are
cleared after the request is finished, but possibly before
the propagated request context has been processed. The non guice
request scopes do not have this problem, so they can reconstruct the
needed objects in the propagated context.

Change-Id: I586cd1c91727e2cb8abb166f23fc504e9949a944
2012-03-09 10:01:08 -08:00
2012-03-07 22:48:55 -08:00
2012-03-07 12:50:47 -08:00
2012-03-07 12:50:47 -08:00
2012-03-07 12:50:47 -08:00
2012-03-07 12:50:47 -08:00
2012-03-07 12:50:47 -08:00
2012-03-07 12:50:47 -08:00
2012-03-07 12:50:47 -08:00
2012-03-07 12:50:47 -08:00
2008-11-14 16:59:34 -08:00
2009-03-27 20:20:10 -07:00
2012-03-07 12:50:47 -08:00
Description
RETIRED, Gerrit as used by OpenStack
120 MiB