Class PluginMetadata

    • 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.
      • getName

        public String getName()
        Description copied from interface: IPluginMetadata
        This method returns the name of the plugin.
        Specified by:
        getName in interface IPluginMetadata
        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 interface IPluginMetadata
        Returns:
        the description of this plugin.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getUrl

        public String getUrl()
        Description copied from interface: IPluginMetadata
        This method returns the url for more information about the plugin.
        Specified by:
        getUrl in interface IPluginMetadata
        Returns:
        the url, may be null.