Class DefaultPluginDescriptor

java.lang.Object
nz.org.riskscape.engine.plugin.DefaultPluginDescriptor
All Implemented Interfaces:
nz.org.riskscape.engine.plugin.PluginDescriptor

public class DefaultPluginDescriptor extends Object implements nz.org.riskscape.engine.plugin.PluginDescriptor
  • Constructor Details

  • Method Details

    • hasPluginDependencies

      public boolean hasPluginDependencies()
      Specified by:
      hasPluginDependencies in interface nz.org.riskscape.engine.plugin.PluginDescriptor
    • getSourcePath

      public Path getSourcePath()
      Specified by:
      getSourcePath in interface nz.org.riskscape.engine.plugin.PluginDescriptor
    • addDependency

      public void addDependency(nz.org.riskscape.engine.plugin.PluginDescriptor dependencyDescriptor)
      Specified by:
      addDependency in interface nz.org.riskscape.engine.plugin.PluginDescriptor
    • getI18nClassLoader

      public ClassLoader getI18nClassLoader()
      Specified by:
      getI18nClassLoader in interface nz.org.riskscape.engine.plugin.PluginDescriptor
    • newPluginInstance

      public nz.org.riskscape.engine.plugin.Plugin newPluginInstance()
      Specified by:
      newPluginInstance in interface nz.org.riskscape.engine.plugin.PluginDescriptor
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public URL getSource()
    • getClassLoader

      public PluginClassLoader getClassLoader()
    • getManifest

      public Manifest getManifest()
    • getPluginClass

      public Optional<Class<?>> getPluginClass()
    • getPluginId

      public String getPluginId()
      Specified by:
      getPluginId in interface nz.org.riskscape.engine.plugin.PluginDescriptor
    • getPluginClassName

      public String getPluginClassName()
      Specified by:
      getPluginClassName in interface nz.org.riskscape.engine.plugin.PluginDescriptor
    • getVersion

      public String getVersion()
      Specified by:
      getVersion in interface nz.org.riskscape.engine.plugin.PluginDescriptor
    • getPluginDependencies

      public Set<String> getPluginDependencies()
      Specified by:
      getPluginDependencies in interface nz.org.riskscape.engine.plugin.PluginDescriptor