Interface OsgiBackedPlugin

All Superinterfaces:
Comparable<Plugin>, Plugin, Resourced, ScopeAware
All Known Implementing Classes:
OsgiBundlePlugin, OsgiPlugin

public interface OsgiBackedPlugin extends 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

  • 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:
      IllegalPluginStateException - if plugin has no OSGi representation yet