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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<T>maybeCreate(BindingType bindingType, ConfigBinder configBinder)
-
-
-
Method Detail
-
maybeCreate
java.util.Optional<T> maybeCreate(BindingType bindingType, ConfigBinder configBinder)
- 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
-
-