A B C E G I N P R S T 
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 supplied Contexts.
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 supplied Contexts.
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 supplied Contexts.
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 to TrackableContext.executeWithinAll(List, Runnable) in subclasses.
ContextBoundClosure.RunnableWrapper - Class in pl.morgwai.base.guice.scopes
Provides nice toString() for wrapped lambdas passed to TrackableContext.executeWithinAll(List, Runnable) in subclasses.
ContextBoundConsumer<T> - Class in pl.morgwai.base.guice.scopes
A decorator that executes its wrapped Consumer within supplied Contexts.
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 supplied Contexts.
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 supplied Contexts.
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 supplied Contexts.
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 given provisioning.
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 the Context current at the moment of a given provisioning.
ContextTracker<ContextT extends TrackableContext<? super ContextT>> - 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
executeWithinAll(List<TrackableContext<?>>, Callable<T>) - Static method in class pl.morgwai.base.guice.scopes.TrackableContext
Executes task synchronously on the current Thread within all contexts.
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 this Context as the current one for the calling Thread and executes task 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 to ContextScope.getCurrentContext().
getActiveContexts(List<ContextTracker<?>>) - Static method in class pl.morgwai.base.guice.scopes.ContextTracker
Retrieves from trackers all TrackableContexts active (current within their type) for the calling Thread.
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 type ContextT.
getCurrentContext() - Method in class pl.morgwai.base.guice.scopes.InducedContextScope
Applies inducedCtxRetriever Function (passed via the constructor) to a BaseContextT obtained from ContextScope.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 of BaseContextT current during a given provisioning.
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 Scopes, 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 this Context from its transient state and stores them into a fully Serializable private List of entries.
produceIfAbsent(Key<T>, Provider<T>) - Method in class pl.morgwai.base.guice.scopes.InjectionContext
Provides an object scoped to this Context given by key.

R

removeScopedObject(Key<?>) - Method in class pl.morgwai.base.guice.scopes.InjectionContext
Removes the object given by key from this Context.
restoreAfterDeserialization() - Method in class pl.morgwai.base.guice.scopes.InjectionContext
Restores the state of this Context from the deserialized data in the private List filled using InjectionContext.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 a ContextScope.ScopedProvider.
setTracker(ContextTracker<ContextT>) - Method in class pl.morgwai.base.guice.scopes.TrackableContext
Sets a ContextTracker that will be used for tracking this Context.

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 can execute tasks within itself, so that it can be tracked across Threads using its associated ContextTracker.
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
 
A B C E G I N P R S T 
All Classes All Packages