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
- apply(T) - Method in class pl.morgwai.base.guice.scopes.ContextBoundFunction
- apply(T, U) - Method in class pl.morgwai.base.guice.scopes.ContextBoundBiFunction
B
- bindToContext(Runnable) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- bindToContext(Callable<T>) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- bindToContext(BiConsumer<T, U>) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- bindToContext(BiFunction<T, U, R>) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- bindToContext(Consumer<T>) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- bindToContext(Function<T, R>) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- boundClosure - Variable in class pl.morgwai.base.guice.scopes.ContextBoundClosure
C
- call() - Method in class pl.morgwai.base.guice.scopes.ContextBoundCallable
- CallableWrapper() - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundClosure.CallableWrapper
- ContextBinder - Class in pl.morgwai.base.guice.scopes
-
Binds closures to
Contexts
that were active at the time of a given 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 executes its wrapped
BiConsumer
within suppliedContexts
. - ContextBoundBiConsumer(List<TrackableContext<?>>, BiConsumer<T, U>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundBiConsumer
- ContextBoundBiFunction<T,U,R> - Class in pl.morgwai.base.guice.scopes
-
A decorator that executes its wrapped
BiFunction
within suppliedContexts
. - ContextBoundBiFunction(List<TrackableContext<?>>, BiFunction<T, U, R>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundBiFunction
- ContextBoundCallable<T> - Class in pl.morgwai.base.guice.scopes
-
A decorator that executes its wrapped
Callable
within suppliedContexts
. - ContextBoundCallable(List<TrackableContext<?>>, Callable<T>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundCallable
- ContextBoundClosure<ClosureT> - Class in pl.morgwai.base.guice.scopes
-
Base class for decorators that execute their wrapped closures within supplied
Contexts
. - ContextBoundClosure(List<TrackableContext<?>>, ClosureT) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundClosure
- ContextBoundClosure.CallableWrapper<T> - Class in pl.morgwai.base.guice.scopes
-
For passing to
TrackableContext.executeWithinAll(List, Callable)
in subclasses. - 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 executes its wrapped
Consumer
within suppliedContexts
. - ContextBoundConsumer(List<TrackableContext<?>>, Consumer<T>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundConsumer
- ContextBoundFunction<T,R> - Class in pl.morgwai.base.guice.scopes
-
A decorator that executes its wrapped
Function
within suppliedContexts
. - ContextBoundFunction(List<TrackableContext<?>>, Function<T, R>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundFunction
- ContextBoundRunnable - Class in pl.morgwai.base.guice.scopes
-
A decorator that executes its wrapped
Runnable
within suppliedContexts
. - ContextBoundRunnable(List<TrackableContext<?>>, Runnable) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundRunnable
- contexts - Variable in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- ContextScope<ContextT extends TrackableContext<? super ContextT>> - Class in pl.morgwai.base.guice.scopes
-
Scopes objects to the
ContextT
instance that is current at a given moment (obtained from the associatedContextTracker
by default). - ContextScope(String, ContextTracker<ContextT>) - 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 scoped to aContext
that is current at the momentContextScope.ScopedProvider.get()
is called (as returned byContextScope.getContext()
). - ContextTracker<ContextT extends TrackableContext<? super ContextT>> - Class in pl.morgwai.base.guice.scopes
-
Allows to track which
Thread
is running within whichContext
. - 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
-
Version of
TrackableContext.executeWithinAll(List, Callable)
that takes aRunnable
param. - executeWithinAll(List<TrackableContext<?>>, Callable<T>) - Static method in class pl.morgwai.base.guice.scopes.TrackableContext
-
Executes
task
synchronously on the currentThread
within allcontexts
. - executeWithinSelf(Runnable) - Method in class pl.morgwai.base.guice.scopes.TrackableContext
-
Version of
TrackableContext.executeWithinSelf(Callable)
that takes aRunnable
param. - executeWithinSelf(Callable<T>) - Method in class pl.morgwai.base.guice.scopes.TrackableContext
-
Asks the associated
ContextTracker
to set thisContext
as the current one for the callingThread
and executestask
synchronously.
G
- get() - Method in class pl.morgwai.base.guice.scopes.ContextScope.ScopedProvider
-
Provides an object scoped to the
Context
returned by a call toContextScope.getContext()
. - getActiveContexts(List<ContextTracker<?>>) - Static method in class pl.morgwai.base.guice.scopes.ContextTracker
-
Retrieves from
trackers
allTrackableContext
s active (current within their class) for the callingThread
. - getBoundClosure() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- getContext() - Method in class pl.morgwai.base.guice.scopes.ContextScope
-
Returns the
Context
from which scoped objects should be obtained. - getContext() - Method in class pl.morgwai.base.guice.scopes.InducedContextScope
-
Returns the
InducedContextT
instance induced by aBaseContextT
instance obtained fromContextScope.tracker
. - getContexts() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- getCurrentContext() - Method in class pl.morgwai.base.guice.scopes.ContextTracker
-
Returns the current
Context
of typeContextT
. - getName() - Method in class pl.morgwai.base.guice.scopes.ContextScope
I
- InducedContextScope<BaseContextT extends TrackableContext<? super BaseContextT>,InducedContextT extends InjectionContext> - Class in pl.morgwai.base.guice.scopes
-
Scopes objects to the instance of
InducedContextT
that is induced by the current at a given momentBaseContextT
instance (obtained from the associatedContextTracker
). - InducedContextScope(String, ContextTracker<BaseContextT>, Function<? super BaseContextT, ? extends InducedContextT>) - Constructor for class pl.morgwai.base.guice.scopes.InducedContextScope
-
Constructs a new instance.
- 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. - prepareForSerialization() - Method in class pl.morgwai.base.guice.scopes.InjectionContext
-
Stores
Serializable
entries fromInjectionContext.scopedObjects
into a fullySerializable
privateList
. - produceIfAbsent(Key<T>, Provider<T>) - Method in class pl.morgwai.base.guice.scopes.InjectionContext
-
Provides the scoped object given by
key
.
R
- removeScopedObject(Key<?>) - Method in class pl.morgwai.base.guice.scopes.InjectionContext
-
Removes the object given by
key
from thisContext
. - restoreAfterDeserialization() - Method in class pl.morgwai.base.guice.scopes.InjectionContext
-
Restores the state of
InjectionContext.scopedObjects
from the deserialized data from the privateList
that was filled before serialization withInjectionContext.prepareForSerialization()
. - 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
-
Wraps
producer
with aContextScope.ScopedProvider
. - setTracker(ContextTracker<ContextT>) - Method in class pl.morgwai.base.guice.scopes.TrackableContext
-
Sets a
ContextTracker
that will be used for tracking thisContext
.
T
- toString() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure.CallableWrapper
- 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<ContextT extends TrackableContext<ContextT>> - Class in pl.morgwai.base.guice.scopes
-
An
InjectionContext
that canexecute tasks within itself
, so that it can be tracked acrossThreads
using its associatedContextTracker
. - TrackableContext(ContextTracker<ContextT>) - Constructor for class pl.morgwai.base.guice.scopes.TrackableContext
- tracker - Variable in class pl.morgwai.base.guice.scopes.ContextScope
All Classes All Packages