Interface PluginHelper

All Superinterfaces:
PluginDetailsSupplier
All Known Implementing Classes:
SimplePluginHelper

public interface PluginHelper extends PluginDetailsSupplier
  • Method Details

    • getCallingBundle

      @Nonnull Optional<org.osgi.framework.Bundle> getCallingBundle()
      Returns:
      the OSGI bundle from which the current call-site has been called, or Optional.empty() if not called from an OSGI bundle, or the bundle cannot be determined
    • getPluginName

      @Nonnull String getPluginName(@Nonnull String pluginKey)
      Parameters:
      pluginKey - the plugin key to resolve
      Returns:
      the name of the resolved plugin, or pluginKey if the name could not determined
    • isUserInstalled

      boolean isUserInstalled(org.osgi.framework.Bundle bundle)
      Parameters:
      bundle - the bundle, possibly null
      Returns:
      true if the bundle is a non-bundled plugin, otherwise false