Interface OsgiBackedPlugin
- All Superinterfaces:
Comparable<com.atlassian.plugin.Plugin>,com.atlassian.plugin.Plugin,com.atlassian.plugin.Resourced,com.atlassian.plugin.ScopeAware
- All Known Implementing Classes:
OsgiBundlePlugin,OsgiPlugin
public interface OsgiBackedPlugin
extends com.atlassian.plugin.Plugin
Interface for plugins backed by OSGi
Bundle
There are a few implementations of Plugin interface that are backed by OSGi bundles,
to identify a such implementations all of them should implement current interface
-
Field Summary
Fields inherited from interface com.atlassian.plugin.Plugin
VERSION_1, VERSION_2, VERSION_3 -
Method Summary
Modifier and TypeMethodDescriptionorg.osgi.framework.BundleReturnsOSGi Bundlethat corresponds to the current pluginMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface com.atlassian.plugin.Plugin
addModuleDescriptor, containsSystemModule, disable, enable, getActivePermissions, getClassLoader, getDateEnabled, getDateEnabling, getDateInstalled, getDateLoaded, getDependencies, getI18nNameKey, getInstallationMode, getKey, getModuleDescriptor, getModuleDescriptors, getModuleDescriptorsByModuleClass, getName, getPluginArtifact, getPluginInformation, getPluginState, getPluginsVersion, getResource, getResourceAsStream, hasAllPermissions, install, isBundledPlugin, isDeleteable, isDynamicallyLoaded, isEnabledByDefault, isSystemPlugin, isUninstallable, loadClass, resolve, setEnabledByDefault, setI18nNameKey, setKey, setName, setPluginInformation, setPluginsVersion, setResources, setSystemPlugin, uninstallMethods inherited from interface com.atlassian.plugin.Resourced
getResourceDescriptor, getResourceDescriptors, getResourceLocationMethods inherited from interface com.atlassian.plugin.ScopeAware
getScopeKey
-
Method Details
-
getBundle
org.osgi.framework.Bundle getBundle()ReturnsOSGi Bundlethat corresponds to the current pluginNote that
Bundlecould be not available on some ofPluginlifecycle stages. In that case method call results inIllegalPluginStateException- Returns:
OSGirepresentation of the current plugin- Throws:
com.atlassian.plugin.IllegalPluginStateException- if plugin has noOSGirepresentation yet
-