Closed sormuras closed 3 years ago
If a module declares more than one provider then the providers are located in the order that its module descriptor lists the providers.
Copied from ServiceLoader.load(ModuleLayer, Class)
Thus, Teal
is first, Green
second.
Introduce extension points for "interesting" events using Java's Service Loader API.
Bach
is the way).In order to alter (extend or override) Bach's default build program (lifecycle), users have to extends
Bach
and provide their implementation via:https://github.com/sormuras/bach/blob/7109652ba70b31ac9c2379ecc309aabe86dce875/.bach/bach.info/module-info.java#L130-L131
This implies the following initial setup:
Instead, users will be enabled to extend Bach's default build program by implementing one (or more) service:
For example: