Package pl.morgwai.base.guice.scopes
Classes for building Guice
Scope
s, that get automatically transferred
when dispatching work to other threads.- See Also:
- project homepage
-
Class Summary Class Description ContextBinder Binds closures to contexts that were active at the time of binding.ContextBoundBiConsumer<T,U> A decorator that will execute its wrappedBiConsumer
within supplied contexts.ContextBoundClosure<ClosureT> Base class for decorators that will execute their wrapped closures within supplied contexts.ContextBoundConsumer<T> A decorator that will execute its wrappedConsumer
within supplied contexts.ContextBoundRunnable A decorator that will execute its wrappedRunnable
within supplied contexts.ContextScope<CtxT extends TrackableContext<CtxT>> Scopes objects to the current context obtained from the associatedContextTracker
.ContextTracker<CtxT extends TrackableContext<CtxT>> Allows to track which thread is running within which context.InducedContextScope<TrackableCtxT extends TrackableContext<TrackableCtxT>,InducedCtxT extends InjectionContext> Scopes objects to the context induced by the context obtained from the associatedContextTracker
.InjectionContext Stores objects scoped to the context of some processing/call/request/session, such as an RPC, a servlet request processing, a session combining several calls etc.TrackableContext<CtxT extends TrackableContext<CtxT>> AnInjectionContext
that canexecute tasks within itself
, so that it can be tracked across threads using the associatedContextTracker
.