Class CallingBundleResolver

java.lang.Object
com.atlassian.diagnostics.util.CallingBundleResolver

public class CallingBundleResolver extends Object
Retrieves the OSGI bundle or plugin that's calling into the current code path from OSGI.
  • Constructor Details

    • CallingBundleResolver

      public CallingBundleResolver()
  • Method Details

    • getCallingBundle

      @Nonnull public Optional<org.osgi.framework.Bundle> getCallingBundle()
      Returns:
      the calling plugin, or Optional.empty() if not currently called from a plugin