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
Modifier and Type Method Description java.util.Optional<MapBinding>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
-
MapBindingFactory
public MapBindingFactory() -
MapBindingFactory
public MapBindingFactory(java.util.function.Function<com.fasterxml.classmate.ResolvedType,? extends MapBuilder> builderFactory)
-
-
Method Details
-
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
-