Package pl.morgwai.base.guice.scopes
Class ContextBoundFunction<T,R>
- java.lang.Object
-
- pl.morgwai.base.guice.scopes.ContextBoundClosure<Function<T,R>>
-
- pl.morgwai.base.guice.scopes.ContextBoundFunction<T,R>
-
- All Implemented Interfaces:
Function<T,R>
public class ContextBoundFunction<T,R> extends ContextBoundClosure<Function<T,R>> implements Function<T,R>
A decorator that executes its wrappedFunction
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 ContextBoundFunction(List<TrackableContext<?>> contexts, Function<T,R> functionToBind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description R
apply(T param)
-
Methods inherited from class pl.morgwai.base.guice.scopes.ContextBoundClosure
getBoundClosure, getContexts, toString
-
-