Package sonia.scm.plugin
Class InstalledPlugin
java.lang.Object
sonia.scm.plugin.InstalledPlugin
- All Implemented Interfaces:
Plugin
Wrapper for a
InstalledPluginDescriptor
. The wrapper holds the directory,
ClassLoader
and WebResourceLoader
of a plugin.- Since:
- 2.0.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionInstalledPlugin
(InstalledPluginDescriptor descriptor, ClassLoader classLoader, WebResourceLoader webResourceLoader, Path directory, boolean core) Constructs a new plugin wrapper. -
Method Summary
Modifier and TypeMethodDescriptionReturns plugin class loader.Returns the plugin descriptor.Returns plugin directory.getId()
Returns the id of the plugin.Returns theWebResourceLoader
for this plugin.boolean
isCore()
boolean
boolean
void
setMarkedForUninstall
(boolean markedForUninstall) void
setUninstallable
(boolean uninstallable)
-
Field Details
-
UNINSTALL_MARKER_FILENAME
- See Also:
-
-
Constructor Details
-
InstalledPlugin
public InstalledPlugin(InstalledPluginDescriptor descriptor, ClassLoader classLoader, WebResourceLoader webResourceLoader, Path directory, boolean core) Constructs a new plugin wrapper.- Parameters:
descriptor
- wrapped pluginclassLoader
- plugin class loaderwebResourceLoader
- web resource loaderdirectory
- plugin directorycore
- marked as core or not
-
-
Method Details
-
getClassLoader
Returns plugin class loader. -
getDirectory
Returns plugin directory. -
getId
Returns the id of the plugin. -
getDescriptor
Returns the plugin descriptor.- Specified by:
getDescriptor
in interfacePlugin
-
getWebResourceLoader
Returns theWebResourceLoader
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)
-