Interface ConfigBindingFactory<T extends ConfigBinding>

All Known Implementing Classes:
ArrayBindingFactory, CollectionBindingFactory, ForcedLeafBindingFactory, InterfaceBindingFactory, LeafBindingFactory, MapBindingFactory

public interface ConfigBindingFactory<T extends ConfigBinding>
  • Method Summary

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

    • maybeCreate

      java.util.Optional<T> maybeCreate​(BindingType bindingType, ConfigBinder configBinder)
      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
      Throws:
      ConfijDefinitionException - when the interface itself is invalid