Class BundleIndex

java.lang.Object
org.eclipse.jetty.osgi.BundleIndex

public class BundleIndex extends Object
Maintains a cross-reference between bundles and their corresponding jetty Resource representations.
  • Constructor Details

    • BundleIndex

      public BundleIndex()
  • Method Details

    • indexBundle

      public Resource indexBundle(ResourceFactory resourceFactory, org.osgi.framework.Bundle bundle) throws Exception
      Keep track of a jetty URI Resource and its associated OSGi bundle.
      Parameters:
      resourceFactory - the ResourceFactory to convert bundle location
      bundle - the bundle to index
      Returns:
      the resource for the bundle
      Throws:
      Exception - if unable to create the resource reference
    • getURI

      public URI getURI(org.osgi.framework.Bundle bundle)
    • getResource

      public Resource getResource(org.osgi.framework.Bundle bundle)
    • getBundle

      public org.osgi.framework.Bundle getBundle(Resource resource)