Class MapBindingFactory

    • Constructor Detail

      • MapBindingFactory

        public MapBindingFactory()
      • MapBindingFactory

        public MapBindingFactory​(java.util.function.Function<com.fasterxml.classmate.ResolvedType,​? extends MapBuilder> builderFactory)
    • Method Detail

      • maybeCreate

        public java.util.Optional<MapBinding> maybeCreate​(BindingType bindingType,
                                                          ConfigBinder configBinder)
        Specified by:
        maybeCreate in interface ConfigBindingFactory<MapBinding>
        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