A B C E G I N 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
- bindSupplierToContext(Supplier<T>) - Method in class pl.morgwai.base.guice.scopes.ContextBinder
- 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
- call() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure.CallableWrapper
- CallableWrapper(Callable<T>) - 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
-
Provides nice
toString()
for wrapped lambdas passed toTrackableContext.executeWithinAll(List, Runnable)
in subclasses. - ContextBoundClosure.RunnableWrapper - Class in pl.morgwai.base.guice.scopes
-
Provides nice
toString()
for wrapped lambdas passed toTrackableContext.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
- ContextBoundSupplier<T> - Class in pl.morgwai.base.guice.scopes
-
A decorator that executes its wrapped
Supplier
within suppliedContexts
. - ContextBoundSupplier(List<TrackableContext<?>>, Supplier<T>) - Constructor for class pl.morgwai.base.guice.scopes.ContextBoundSupplier
- 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
Context
that is current during a givenprovisioning
. - 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 theContext current
at the moment of a givenprovisioning
. - 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
- 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
- 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.ContextBoundSupplier
- get() - Method in class pl.morgwai.base.guice.scopes.ContextScope.ScopedProvider
-
Provides an object scoped to the
Context
returned by a call toContextScope.getCurrentContext()
. - getActiveContexts(List<ContextTracker<?>>) - Static method in class pl.morgwai.base.guice.scopes.ContextTracker
-
Retrieves from
trackers
allTrackableContext
s active (current within their type) for the callingThread
. - getBoundClosure() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- getContexts() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure
- getCurrentContext() - Method in class pl.morgwai.base.guice.scopes.ContextScope
-
Returns the
Context
from which a scoped object should be obtained. - getCurrentContext() - Method in class pl.morgwai.base.guice.scopes.ContextTracker
-
Returns the current
Context
of typeContextT
. - getCurrentContext() - Method in class pl.morgwai.base.guice.scopes.InducedContextScope
-
Applies
inducedCtxRetriever
Function
(passed viathe constructor
) to aBaseContextT
obtained fromContextScope.tracker
. - 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
InducedContextT
instance induced by the instance ofBaseContextT
current during a givenprovisioning
. - 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 event/call/request/session, such as an RPC, a servlet request processing, a session combining several events etc. - InjectionContext() - Constructor for class pl.morgwai.base.guice.scopes.InjectionContext
N
- name - Variable in class pl.morgwai.base.guice.scopes.ContextScope
-
Name of this
Scope
for logging and debugging purposes.
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
-
Picks
Serializable
objects scoped to thisContext
from itstransient
state and stores them into a fullySerializable
privateList
of entries. - produceIfAbsent(Key<T>, Provider<T>) - Method in class pl.morgwai.base.guice.scopes.InjectionContext
-
Provides an object scoped to this
Context
given bykey
.
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 this
Context
from the deserialized data in the privateList
filled usingInjectionContext.prepareForSerialization()
. - run() - Method in class pl.morgwai.base.guice.scopes.ContextBoundClosure.RunnableWrapper
- run() - Method in class pl.morgwai.base.guice.scopes.ContextBoundRunnable
- RunnableWrapper(Runnable) - 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
-
Returns
ContextScope.name
. - 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
- trackers - Variable in class pl.morgwai.base.guice.scopes.ContextBinder
All Classes All Packages