A B C E G I P R S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- accept(T) - Method in class pl.morgwai.base.guice.scopes.ContextBoundConsumer
- accept(T, U) - Method in class pl.morgwai.base.guice.scopes.ContextBoundBiConsumer
B
- bindToContext(Runnable) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- bindToContext(BiConsumer<T, U>) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- bindToContext(Consumer<T>) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- boundClosure - Variable in class pl.morgwai.base.guice.scopes.ContextBoundClosure
C
- ContextBinder - Class in pl.morgwai.base.guice.scopes
-
Binds closures to contexts that were active at the time of binding.
- ContextBinder(List<ContextTracker<?>>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBinder
- ContextBoundBiConsumer<T,U> - Class in pl.morgwai.base.guice.scopes
-
A decorator that will execute its wrapped
BiConsumer
within supplied contexts. - ContextBoundBiConsumer(List<TrackableContext<?>>, BiConsumer<T, U>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundBiConsumer
- ContextBoundClosure<ClosureT> - Class in pl.morgwai.base.guice.scopes
-
Base class for decorators that will execute their wrapped closures within supplied contexts.
- ContextBoundClosure(List<TrackableContext<?>>, ClosureT) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundClosure
- ContextBoundClosure.RunnableWrapper - Class in pl.morgwai.base.guice.scopes
-
For passing to
TrackableContext.executeWithinAll(List, Runnable)
in subclasses. - ContextBoundConsumer<T> - Class in pl.morgwai.base.guice.scopes
-
A decorator that will execute its wrapped
Consumer
within supplied contexts. - ContextBoundConsumer(List<TrackableContext<?>>, Consumer<T>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundConsumer
- ContextBoundRunnable - Class in pl.morgwai.base.guice.scopes
-
A decorator that will execute its wrapped
Runnable
within supplied contexts. - ContextBoundRunnable(List<TrackableContext<?>>, Runnable) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundRunnable
- contexts - Variable in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- ContextScope<CtxT extends TrackableContext<CtxT>> - Class in pl.morgwai.base.guice.scopes
-
Scopes objects to the current context obtained from the associated
ContextTracker
. - ContextScope(String, ContextTracker<CtxT>) - Constructor for class pl.morgwai.base.guice.scopes.ContextScope
- ContextScope.ScopedProvider<T> - Class in pl.morgwai.base.guice.scopes
-
Returned by
ContextScope.scope(Key, Provider)
, provides objects obtained from the current context. - ContextTracker<CtxT extends TrackableContext<CtxT>> - Class in pl.morgwai.base.guice.scopes
-
Allows to track which thread is running within which context.
- ContextTracker() - Constructor for class pl.morgwai.base.guice.scopes.ContextTracker
E
- executeWithinAll(List<TrackableContext<?>>, Runnable) - Static method in class pl.morgwai.base.guice.scopes.TrackableContext
-
Executes
task
on the current thread within allcontexts
. - executeWithinAll(List<TrackableContext<?>>, Callable<T>) - Static method in class pl.morgwai.base.guice.scopes.TrackableContext
-
Executes
task
on the current thread within allcontexts
. - executeWithinSelf(Runnable) - Method in class pl.morgwai.base.guice.scopes.TrackableContext
-
Sets itself as the current context for the current thread and executes
task
synchronously. - executeWithinSelf(Callable<T>) - Method in class pl.morgwai.base.guice.scopes.TrackableContext
-
Sets itself as the current context for the current thread and executes
task
synchronously.
G
- get() - Method in class pl.morgwai.base.guice.scopes.ContextScope.ScopedProvider
-
Provides an object scoped to
the current context
. - getActiveContexts(List<ContextTracker<?>>) - Static method in class pl.morgwai.base.guice.scopes.ContextTracker
-
Retrieves all active contexts from
trackers
. - getBoundClosure() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- getContext() - Method in class pl.morgwai.base.guice.scopes.ContextScope
-
Returns a context instance from which scoped objects should be obtained by this Scope.
- getContext() - Method in class pl.morgwai.base.guice.scopes.InducedContextScope
- getContexts() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- getCurrentContext() - Method in class pl.morgwai.base.guice.scopes.ContextTracker
-
Returns context of the current thread.
- getName() - Method in class pl.morgwai.base.guice.scopes.ContextScope
I
- InducedContextScope<TrackableCtxT extends TrackableContext<TrackableCtxT>,InducedCtxT extends InjectionContext> - Class in pl.morgwai.base.guice.scopes
-
Scopes objects to the context induced by the context obtained from the associated
ContextTracker
. - InducedContextScope(String, ContextTracker<TrackableCtxT>, Function<TrackableCtxT, InducedCtxT>) - Constructor for class pl.morgwai.base.guice.scopes.InducedContextScope
- InjectionContext - Class in pl.morgwai.base.guice.scopes
-
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.
- InjectionContext() - Constructor for class pl.morgwai.base.guice.scopes.InjectionContext
P
- pl.morgwai.base.guice.scopes - package pl.morgwai.base.guice.scopes
-
Classes for building Guice
Scope
s, that get automatically transferred when dispatching work to other threads. - provideIfAbsent(Key<T>, Provider<T>) - Method in class pl.morgwai.base.guice.scopes.InjectionContext
-
Obtains the object given by
key
.
R
- removeScopedObject(Key<?>) - Method in class pl.morgwai.base.guice.scopes.InjectionContext
-
Removes the object given by
key
from this context. - run() - Method in class pl.morgwai.base.guice.scopes.ContextBoundRunnable
- RunnableWrapper() - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundClosure.RunnableWrapper
S
- scope(Key<T>, Provider<T>) - Method in class pl.morgwai.base.guice.scopes.ContextScope
T
- toString() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure.RunnableWrapper
- toString() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- toString() - Method in class pl.morgwai.base.guice.scopes.ContextScope.ScopedProvider
- toString() - Method in class pl.morgwai.base.guice.scopes.ContextScope
- TrackableContext<CtxT extends TrackableContext<CtxT>> - Class in pl.morgwai.base.guice.scopes
-
An
InjectionContext
that canexecute tasks within itself
, so that it can be tracked across threads using the associatedContextTracker
. - TrackableContext(ContextTracker<CtxT>) - Constructor for class pl.morgwai.base.guice.scopes.TrackableContext
- tracker - Variable in class pl.morgwai.base.guice.scopes.ContextScope
All Classes All Packages