Package pl.morgwai.base.guice.scopes
Class ContextBoundConsumer<T>
- java.lang.Object
-
- pl.morgwai.base.guice.scopes.ContextBoundClosure<Consumer<T>>
-
- pl.morgwai.base.guice.scopes.ContextBoundConsumer<T>
-
- All Implemented Interfaces:
Consumer<T>
public class ContextBoundConsumer<T> extends ContextBoundClosure<Consumer<T>> implements Consumer<T>
A decorator that will execute its wrappedConsumer
within supplied contexts.
-
-
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 ContextBoundConsumer(List<TrackableContext<?>> contexts, Consumer<T> consumerToBind)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(T param)
-
Methods inherited from class pl.morgwai.base.guice.scopes.ContextBoundClosure
getBoundClosure, getContexts, toString
-
-