Package ch.kk7.confij.binding
Class BindingContext
- java.lang.Object
-
- ch.kk7.confij.binding.BindingContext
-
public class BindingContext extends java.lang.ObjectWhile traversing the tree of interfaces defining the configuration, this represents a state at a given node. It is an aggregated state over all the parent nodes, usually considering the annotations up to a node.
-
-
Constructor Summary
Constructors Constructor Description BindingContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.annotation.Annotation>getFactoryConfigFor(java.lang.Class<? extends ValueMapperFactory> forClass)java.util.Optional<ValueMapperFactory>getForcedMapperFactory()static BindingContextnewDefaultContext(java.util.List<ValueMapperFactory> mapperFactories)BindingContextsettingsFor(java.lang.reflect.AnnotatedElement element, boolean forced)protected BindingContextwithFactoryConfigFor(java.lang.Class<? extends ValueMapperFactory> forClass, java.lang.annotation.Annotation declaringAnnotation)BindingContextwithMapperFactory(ValueMapperFactory valueMapperFactory)protected BindingContextwithMapperFactoryFor(ValueMapper valueMapper, boolean forced)
-
-
-
Method Detail
-
newDefaultContext
public static BindingContext newDefaultContext(java.util.List<ValueMapperFactory> mapperFactories)
-
getForcedMapperFactory
public java.util.Optional<ValueMapperFactory> getForcedMapperFactory()
-
withMapperFactory
public BindingContext withMapperFactory(ValueMapperFactory valueMapperFactory)
-
withMapperFactoryFor
protected BindingContext withMapperFactoryFor(ValueMapper valueMapper, boolean forced)
-
getFactoryConfigFor
public java.util.Optional<java.lang.annotation.Annotation> getFactoryConfigFor(java.lang.Class<? extends ValueMapperFactory> forClass)
-
withFactoryConfigFor
protected BindingContext withFactoryConfigFor(java.lang.Class<? extends ValueMapperFactory> forClass, java.lang.annotation.Annotation declaringAnnotation)
-
settingsFor
public BindingContext settingsFor(java.lang.reflect.AnnotatedElement element, boolean forced)
-
-