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 Details

    • BindingContext

      public BindingContext()
  • Method Details

    • 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)