Class LeafBindingFactory

java.lang.Object
ch.kk7.confij.binding.leaf.LeafBindingFactory
All Implemented Interfaces:
ConfigBindingFactory<LeafBinding>

public class LeafBindingFactory
extends java.lang.Object
implements ConfigBindingFactory<LeafBinding>
  • Constructor Details

    • LeafBindingFactory

      public LeafBindingFactory()
  • Method Details

    • firstValueMapper

      public static java.util.Optional<ValueMapperInstance> firstValueMapper​(BindingType bindingType)
    • maybeCreate

      public java.util.Optional<LeafBinding> maybeCreate​(BindingType bindingType, ConfigBinder configBinder)
      Specified by:
      maybeCreate in interface ConfigBindingFactory<LeafBinding>
      Parameters:
      bindingType - java-type and binding context to be processed
      configBinder - the binder holding together all the factories
      Returns:
      a binding if this factory can process this bindingType, empty otherwise