Package ch.kk7.confij.binding.map
Class MapBindingFactory
- java.lang.Object
-
- ch.kk7.confij.binding.map.MapBindingFactory
-
- All Implemented Interfaces:
ConfigBindingFactory<MapBinding>
public class MapBindingFactory extends java.lang.Object implements ConfigBindingFactory<MapBinding>
-
-
Constructor Summary
Constructors Constructor Description MapBindingFactory()MapBindingFactory(java.util.function.Function<com.fasterxml.classmate.ResolvedType,? extends MapBuilder> builderFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<MapBinding>maybeCreate(BindingType bindingType, ConfigBinder configBinder)
-
-
-
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:
maybeCreatein interfaceConfigBindingFactory<MapBinding>- Parameters:
bindingType- java-type and binding context to be processedconfigBinder- the binder holding together all the factories- Returns:
- a binding if this factory can process this bindingType, empty otherwise
-
-