Interface OsgiBackedPlugin
- All Superinterfaces:
Comparable<Plugin>,Plugin,Resourced,ScopeAware
- All Known Implementing Classes:
OsgiBundlePlugin,OsgiPlugin
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
-
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:
IllegalPluginStateException- if plugin has noOSGirepresentation yet
-