View Javadoc

1   package com.atlassian.plugin.osgi.bridge.external;
2   
3   import com.atlassian.plugin.Plugin;
4   
5   /**
6    * Provides access for the plugin the consuming bundle is a part of
7    *
8    * @since 2.6
9    */
10  public interface PluginRetrievalService
11  {
12      /**
13       * @return the plugin of the service consumer.  Can be null if there is no corresponding {@Plugin} instance for the
14       * consuming bundle, as would be the case for a framework bundle, for example.
15       */
16      Plugin getPlugin();
17  }