Package com.blueriq.component.api.plugin
Class PluginMetadata
java.lang.Object
com.blueriq.component.api.plugin.PluginMetadata
- All Implemented Interfaces:
IPluginMetadata
,Serializable
Class for reading plugin meta data from a properties file.
- Since:
- 8.1
- Author:
- Danny Roest
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPluginMetadata
(String pluginArtifact) Creates a new PluginMetadata instance for the plugin artifact by reading "[pluginArtifact].plugin" from the classpath.PluginMetadata
(Properties properties) Creates a new PluginMetadata instance for the plugin with the specified properties. -
Method Summary
Modifier and TypeMethodDescriptionboolean
This method returns the artifactId.This method returns the description of the plugin.This method returns the groupId of the plugin.getName()
This method returns the name of the plugin.This method returns the properties where this metadata is based on.getUrl()
This method returns the url for more information about the plugin.This method returns the version the plugin.int
hashCode()
toString()
-
Constructor Details
-
PluginMetadata
Creates a new PluginMetadata instance for the plugin artifact by reading "[pluginArtifact].plugin" from the classpath.- Parameters:
pluginArtifact
- the name of the artifact.
-
PluginMetadata
Creates a new PluginMetadata instance for the plugin with the specified properties.- Parameters:
properties
- the properties containing the metadata.
-
-
Method Details
-
getProperties
This method returns the properties where this metadata is based on.- Returns:
- the properties where this metadata is based on.
-
getGroupId
Description copied from interface:IPluginMetadata
This method returns the groupId of the plugin.- Specified by:
getGroupId
in interfaceIPluginMetadata
- Returns:
- the GroupId
-
getName
Description copied from interface:IPluginMetadata
This method returns the name of the plugin.- Specified by:
getName
in interfaceIPluginMetadata
- Returns:
- the name of the plugin
-
getDescription
Description copied from interface:IPluginMetadata
This method returns the description of the plugin.- Specified by:
getDescription
in interfaceIPluginMetadata
- Returns:
- the description of this plugin.
-
getVersion
Description copied from interface:IPluginMetadata
This method returns the version the plugin.- Specified by:
getVersion
in interfaceIPluginMetadata
- Returns:
- the version of the plugin.
-
toString
-
hashCode
public int hashCode() -
equals
-
getArtifactId
Description copied from interface:IPluginMetadata
This method returns the artifactId.- Specified by:
getArtifactId
in interfaceIPluginMetadata
- Returns:
- the artifactId
-
getUrl
Description copied from interface:IPluginMetadata
This method returns the url for more information about the plugin.- Specified by:
getUrl
in interfaceIPluginMetadata
- Returns:
- the url, may be null.
-