Class InstalledPlugin

java.lang.Object
sonia.scm.plugin.InstalledPlugin
All Implemented Interfaces:
Plugin

public final class InstalledPlugin extends Object implements Plugin
Wrapper for a InstalledPluginDescriptor. The wrapper holds the directory, ClassLoader and WebResourceLoader of a plugin.
Since:
2.0.0
  • Field Details

  • Constructor Details

    • InstalledPlugin

      public InstalledPlugin(InstalledPluginDescriptor descriptor, ClassLoader classLoader, WebResourceLoader webResourceLoader, Path directory, boolean core)
      Constructs a new plugin wrapper.
      Parameters:
      descriptor - wrapped plugin
      classLoader - plugin class loader
      webResourceLoader - web resource loader
      directory - plugin directory
      core - marked as core or not
  • Method Details

    • getClassLoader

      public ClassLoader getClassLoader()
      Returns plugin class loader.
    • getDirectory

      public Path getDirectory()
      Returns plugin directory.
    • getId

      public String getId()
      Returns the id of the plugin.
    • getDescriptor

      public InstalledPluginDescriptor getDescriptor()
      Returns the plugin descriptor.
      Specified by:
      getDescriptor in interface Plugin
    • getWebResourceLoader

      public WebResourceLoader getWebResourceLoader()
      Returns the WebResourceLoader for this plugin.
    • isCore

      public boolean isCore()
    • isMarkedForUninstall

      public boolean isMarkedForUninstall()
    • setMarkedForUninstall

      public void setMarkedForUninstall(boolean markedForUninstall)
    • isUninstallable

      public boolean isUninstallable()
    • setUninstallable

      public void setUninstallable(boolean uninstallable)