Interface ConfigBindingFactory<T extends ConfigBinding>

    • Method Detail

      • 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