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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<ValueMapperInstance>firstValueMapper(BindingType bindingType)java.util.Optional<LeafBinding>maybeCreate(BindingType bindingType, ConfigBinder configBinder)
-
-
-
Method Detail
-
firstValueMapper
public static java.util.Optional<ValueMapperInstance> firstValueMapper(BindingType bindingType)
-
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
-
-