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       * @return the plugin of the service consumer that can be cached for the life of the plugin.
13       * Can be null if there is no corresponding {@link Plugin} instance for the consuming bundle, as would be the
14       * case for a framework bundle, for example.
15       */
16      Plugin getPlugin();
17  }