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 Type
    Method
    Description
    org.osgi.framework.Bundle
    Returns OSGi Bundle that corresponds to the current plugin

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods 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, uninstall

    Methods inherited from interface com.atlassian.plugin.Resourced

    getResourceDescriptor, getResourceDescriptors, getResourceLocation

    Methods inherited from interface com.atlassian.plugin.ScopeAware

    getScopeKey
  • Method Details

    • getBundle

      org.osgi.framework.Bundle getBundle()
      Returns OSGi Bundle that corresponds to the current plugin

      Note that Bundle could be not available on some of Plugin lifecycle stages. In that case method call results in IllegalPluginStateException

      Returns:
      OSGi representation of the current plugin
      Throws:
      com.atlassian.plugin.IllegalPluginStateException - if plugin has no OSGi representation yet