Package ch.kk7.confij.binding
Interface ConfigBindingFactory<T extends ConfigBinding>
- All Known Implementing Classes:
ArrayBindingFactory,CollectionBindingFactory,ForcedLeafBindingFactory,InterfaceBindingFactory,LeafBindingFactory,MapBindingFactory
public interface ConfigBindingFactory<T extends ConfigBinding>
-
Method Summary
Modifier and Type Method Description java.util.Optional<T>maybeCreate(BindingType bindingType, ConfigBinder configBinder)
-
Method Details
-
maybeCreate
- 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
- Throws:
ConfijDefinitionException- when the interface itself is invalid
-