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
Modifier and Type Method Description java.util.Optional<InterfaceBinding>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
-
InterfaceBindingFactory
public InterfaceBindingFactory()
-
-
Method Details
-
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
-