A B C E G I 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

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 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
 
ContextBoundBiFunction<T,​U,​R> - Class in pl.morgwai.base.guice.scopes
A decorator that will execute 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 will execute 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 will 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
ContextBoundClosure.RunnableWrapper - Class in pl.morgwai.base.guice.scopes
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
 
ContextBoundFunction<T,​R> - Class in pl.morgwai.base.guice.scopes
A decorator that will execute 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 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 all contexts.
executeWithinAll(List<TrackableContext<?>>, Callable<T>) - Static method in class pl.morgwai.base.guice.scopes.TrackableContext
Executes task on the current thread within all contexts.
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 Scopes, 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.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<CtxT extends TrackableContext<CtxT>> - Class in pl.morgwai.base.guice.scopes
An InjectionContext that can execute tasks within itself, so that it can be tracked across threads using the associated ContextTracker.
TrackableContext(ContextTracker<CtxT>) - Constructor for class pl.morgwai.base.guice.scopes.TrackableContext
 
tracker - Variable in class pl.morgwai.base.guice.scopes.ContextScope
 
A B C E G I P R S T 
All Classes All Packages