Class OsgiBundleBackdoor

java.lang.Object
com.atlassian.jira.dev.backdoor.osgi.OsgiBundleBackdoor

@Consumes("application/json") @Produces("application/json") @Path("osgi") public class OsgiBundleBackdoor extends Object
A REST resource which exposes information about the OSGi bundles currently installed.

This is a more test-focussed alternative to the REST resources provided by UPM, but comes from the same source, i.e. the BundleContext.

  • Constructor Details

    • OsgiBundleBackdoor

      @Inject public OsgiBundleBackdoor(org.osgi.framework.BundleContext bundleContext, com.atlassian.plugin.osgi.container.PackageScannerConfiguration packageScannerConfig)
  • Method Details

    • getBundles

      @GET @Path("bundles") public jakarta.ws.rs.core.Response getBundles(@QueryParam("treatDeprecatedPackagesAsPublic") Boolean treatDeprecatedPackagesAsPublic)
    • getBundle

      @GET @Path("bundles/{bundleId}") public jakarta.ws.rs.core.Response getBundle(@PathParam("bundleId") int bundleId)