Package ch.kk7.confij.binding.leaf
Class LeafBindingFactory
java.lang.Object
ch.kk7.confij.binding.leaf.LeafBindingFactory
- All Implemented Interfaces:
ConfigBindingFactory<LeafBinding>
public class LeafBindingFactory extends java.lang.Object implements ConfigBindingFactory<LeafBinding>
-
Constructor Summary
Constructors Constructor Description LeafBindingFactory() -
Method Summary
Modifier and Type Method Description static java.util.Optional<ValueMapperInstance>firstValueMapper(BindingType bindingType)java.util.Optional<LeafBinding>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
-
LeafBindingFactory
public LeafBindingFactory()
-
-
Method Details
-
firstValueMapper
-
maybeCreate
public java.util.Optional<LeafBinding> maybeCreate(BindingType bindingType, ConfigBinder configBinder)- Specified by:
maybeCreatein interfaceConfigBindingFactory<LeafBinding>- 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
-