Package ch.kk7.confij.binding
Class BindingContext
java.lang.Object
ch.kk7.confij.binding.BindingContext
public class BindingContext
extends java.lang.Object
While 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
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)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BindingContext
public BindingContext()
-
-
Method Details
-
newDefaultContext
-
getForcedMapperFactory
-
withMapperFactory
-
withMapperFactoryFor
-
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
-