Registers
InjectPlugin classes for auto-detection with JPMS.
Plugins can be registered with the ServiceLoader manually, but manually registered plugins may cause dependency missing errors to consumers using JPMS. (This can be fixed if the consumer uses the inject maven/gradle plugin)
If we use this @PluginProvides annotation, then avaje inject can auto-detect the
plugin and the types that it provides when a consumer uses JPMS. This eliminates the need for a plugin consumer to take action.
-
Element Details
-
value
The types this plugin provides.- Default:
{}
-
providesStrings
Fully Qualified Strings of the classes provided. Use when providing generic types- Default:
{}
-
providesAspects
Class<?>[] providesAspectsThe aspects this component provides.- Default:
{}
-