Package com.blueriq.component.api.plugin
Class PluginMetadata
- java.lang.Object
-
- com.blueriq.component.api.plugin.PluginMetadata
-
- All Implemented Interfaces:
IPluginMetadata
,Serializable
public class PluginMetadata extends Object implements IPluginMetadata, Serializable
Class for reading plugin meta data from a properties file.- Since:
- 8.1
- Author:
- Danny Roest
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginMetadata(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getArtifactId()
This method returns the artifactId.String
getDescription()
This method returns the description of the plugin.String
getGroupId()
This method returns the groupId of the plugin.String
getName()
This method returns the name of the plugin.Properties
getProperties()
This method returns the properties where this metadata is based on.String
getUrl()
This method returns the url for more information about the plugin.PluginVersion
getVersion()
This method returns the version the plugin.int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
PluginMetadata
public PluginMetadata(String pluginArtifact)
Creates a new PluginMetadata instance for the plugin artifact by reading "[pluginArtifact].plugin" from the classpath.- Parameters:
pluginArtifact
- the name of the artifact.
-
PluginMetadata
public PluginMetadata(Properties properties)
Creates a new PluginMetadata instance for the plugin with the specified properties.- Parameters:
properties
- the properties containing the metadata.
-
-
Method Detail
-
getProperties
public Properties getProperties()
This method returns the properties where this metadata is based on.- Returns:
- the properties where this metadata is based on.
-
getGroupId
public String getGroupId()
Description copied from interface:IPluginMetadata
This method returns the groupId of the plugin.- Specified by:
getGroupId
in interfaceIPluginMetadata
- Returns:
- the GroupId
-
getName
public String 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
public String 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
public PluginVersion getVersion()
Description copied from interface:IPluginMetadata
This method returns the version the plugin.- Specified by:
getVersion
in interfaceIPluginMetadata
- Returns:
- the version of the plugin.
-
getArtifactId
public String getArtifactId()
Description copied from interface:IPluginMetadata
This method returns the artifactId.- Specified by:
getArtifactId
in interfaceIPluginMetadata
- Returns:
- the artifactId
-
getUrl
public String 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.
-
-