Package ch.kk7.confij.binding.intf
Class InterfaceBindingFactory
- java.lang.Object
-
- ch.kk7.confij.binding.intf.InterfaceBindingFactory
-
- All Implemented Interfaces:
ConfigBindingFactory<InterfaceBinding>
public class InterfaceBindingFactory extends java.lang.Object implements ConfigBindingFactory<InterfaceBinding>
-
-
Constructor Summary
Constructors Constructor Description InterfaceBindingFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<InterfaceBinding>maybeCreate(BindingType bindingType, ConfigBinder configBinder)
-
-
-
Method Detail
-
maybeCreate
public java.util.Optional<InterfaceBinding> maybeCreate(BindingType bindingType, ConfigBinder configBinder)
- Specified by:
maybeCreatein interfaceConfigBindingFactory<InterfaceBinding>- 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
-
-