Package io.bdeploy.api.plugin.v1
Class Plugin
java.lang.Object
io.bdeploy.api.plugin.v1.Plugin
Base class for all plugins.
Plugins are registered on the server using a unique plugin ID. This ID is of no direct interest to the plugin. All endpoints and assets will be served by the server in a context path which reflects this ID. A plugin with an identical (i.e. hash of JAR identical) ID will be served only once, even if registered multiple times.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the MANIFEST.MF header which must be present in the JAR file of the plugin pointing to the fully qualified name of thePluginsubclass within the JAR.static final StringThe name of the MANIFEST.MF header which must be present in the JAR file of the plugin setting the human readable name of the pluginstatic final StringA header which is used to discover plugins which allow product version sorting without actually loading those plugins.static final StringThe name of the MANIFEST.MF header which must be present in the JAR file of the plugin setting the human readable version of the plugin -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
PLUGIN_CLASS_HEADER
The name of the MANIFEST.MF header which must be present in the JAR file of the plugin pointing to the fully qualified name of thePluginsubclass within the JAR.- See Also:
-
PLUGIN_NAME_HEADER
The name of the MANIFEST.MF header which must be present in the JAR file of the plugin setting the human readable name of the plugin- See Also:
-
PLUGIN_VERSION_HEADER
The name of the MANIFEST.MF header which must be present in the JAR file of the plugin setting the human readable version of the plugin- See Also:
-
PLUGIN_SORTER_HEADER
A header which is used to discover plugins which allow product version sorting without actually loading those plugins.- See Also:
-
-
Constructor Details
-
Plugin
public Plugin()
-
-
Method Details
-
getComponentClasses
- Returns:
- a collection of JAX-RS component classes which should be registered as resources.
-
getComponentObjects
- Returns:
- a collection of JAX-RS component objects which should be registered with the server.
-
getAssets
- Returns:
- a collection of
PluginAssetswhich describe the plugin's asset paths to be hosted on the server.
-
getCustomEditors
- Returns:
- a collection of
CustomEditorwhich describe all custom editors which can be loaded from this plugin.
-
getCustomSorter
- Returns:
- a
CustomProductVersionSorterwhich provides custom version comparision for the product.
-