Package io.virtdata.core
Class ContextualBindingsTemplate<C,R>
- java.lang.Object
-
- io.virtdata.core.ContextualBindingsTemplate<C,R>
-
- Type Parameters:
C- The type of the contextual template object.R- The type which will be produced when mapped values are applied to a type C
public class ContextualBindingsTemplate<C,R> extends java.lang.ObjectA template that maps a set of specifiers, a context object, and a method for applying mapped values to the context object. This can be used in the configuration phase, in global scope without triggering mapper bindings resolution from specifiers.
-
-
Constructor Summary
Constructors Constructor Description ContextualBindingsTemplate(C context, BindingsTemplate bindingsTemplate, ValuesBinder<C,R> valuesMapBinder)
-
Method Summary
Modifier and Type Method Description BindingsTemplategetBindingsTemplate()CgetContext()ValuesBinder<C,R>getValuesBinder()ContextualBindings<C,R>resolveBindings()
-
-
-
Constructor Detail
-
ContextualBindingsTemplate
public ContextualBindingsTemplate(C context, BindingsTemplate bindingsTemplate, ValuesBinder<C,R> valuesMapBinder)
-
-
Method Detail
-
getContext
public C getContext()
-
getBindingsTemplate
public BindingsTemplate getBindingsTemplate()
-
getValuesBinder
public ValuesBinder<C,R> getValuesBinder()
-
resolveBindings
public ContextualBindings<C,R> resolveBindings()
-
-