Package pl.morgwai.base.guice.scopes
Class ContextBoundCallable<T>
- java.lang.Object
-
- pl.morgwai.base.guice.scopes.ContextBoundClosure<Callable<T>>
-
- pl.morgwai.base.guice.scopes.ContextBoundCallable<T>
-
- All Implemented Interfaces:
Callable<T>
public class ContextBoundCallable<T> extends ContextBoundClosure<Callable<T>> implements Callable<T>
A decorator that executes its wrappedCallable
within suppliedContexts
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class pl.morgwai.base.guice.scopes.ContextBoundClosure
ContextBoundClosure.CallableWrapper<T>, ContextBoundClosure.RunnableWrapper
-
-
Field Summary
-
Fields inherited from class pl.morgwai.base.guice.scopes.ContextBoundClosure
boundClosure, contexts
-
-
Constructor Summary
Constructors Constructor Description ContextBoundCallable(List<TrackableContext<?>> contexts, Callable<T> taskToBind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
call()
-
Methods inherited from class pl.morgwai.base.guice.scopes.ContextBoundClosure
getBoundClosure, getContexts, toString
-
-