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