Processors - seedstack/coffig GitHub Wiki
A processor is a Coffig component type responsible for processing and mutating the global configuration tree (after provider merging). A processor implements the org.seedstack.coffig.spi.ConfigurationProcessor
interface.
Programmatic registration
To register a processor programmatically, you create an instance of the provider and add it as a parameter to the withProcessors()
Coffig builder method:
Coffig.builder()
.withProcessors(new MyProcessor())
.build();
Declarative registration
You can also register a processor automatically by adding its fully qualified class name in META-INF/services/org.seedstack.coffig.spi.ConfigurationProcessor
:
org.myorg.myapp.MyProcessor