Class ForcedLeafBindingFactory

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

public class ForcedLeafBindingFactory
extends java.lang.Object
implements ConfigBindingFactory<LeafBinding>
  • Constructor Summary

    Constructors
    Constructor Description
    ForcedLeafBindingFactory()  
  • Method Summary

    Modifier and Type Method Description
    java.util.Optional<LeafBinding> maybeCreate​(BindingType bindingType, ConfigBinder configBinder)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ForcedLeafBindingFactory

      public ForcedLeafBindingFactory()
  • Method Details

    • 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