-
Notifications
You must be signed in to change notification settings - Fork 6
Processors
Adrien LAUER edited this page Feb 23, 2017
·
1 revision
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.
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();
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