Providers - seedstack/coffig GitHub Wiki
A provider is a Coffig component type responsible for providing tree nodes that will be merged into the global configuration tree. A provider implements the org.seedstack.coffig.spi.ConfigurationProvider
interface.
Programmatic registration
To register a provider programmatically, you create an instance of the provider and add it as a parameter to the withProviders()
Coffig builder method:
Coffig.builder()
.withProviders(new MyProvider())
.build();
Declarative registration
You can also register an evaluator automatically by adding its fully qualified class name in META-INF/services/org.seedstack.coffig.spi.ConfigurationProvider
:
org.myorg.myapp.MyProvider