Package org.ossreviewtoolkit.plugins.api
Annotation OrtPlugin
-
- All Implemented Interfaces:
@Target(allowedTargets = {AnnotationTarget.CLASS}) public @interface OrtPlugin
An annotation to mark a class as an ORT plugin. It is used to generate a factory class to create instances of the plugin.
Each ORT extension point is represented by a class that extends PluginFactory and each plugin must provide a factory class that implements the extension point. The plugin factory class is responsible for creating instances of the plugins, handling the PluginConfig, and providing the PluginDescriptor.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringidprivate final StringdisplayNameprivate final Stringdescriptionprivate final KClass<?>factory
-