Class BundleInfo

java.lang.Object
org.apache.sling.installer.core.impl.tasks.BundleInfo

public class BundleInfo extends Object
Holds the bundle info that we need, makes it easier to test without an OSGi framework.
  • Field Details

    • symbolicName

      public final String symbolicName
    • version

      public final org.osgi.framework.Version version
    • state

      public final int state
    • id

      public final long id
  • Constructor Details

    • BundleInfo

      public BundleInfo(String symbolicName, org.osgi.framework.Version version, int state, long id)
  • Method Details

    • getBundleInfo

      public static BundleInfo getBundleInfo(org.osgi.framework.BundleContext bundleContext, String symbolicName, String version)
    • getMatchingBundle

      public static org.osgi.framework.Bundle getMatchingBundle(org.osgi.framework.BundleContext bundleContext, String bundleSymbolicName, String version)
      Finds the bundle with given symbolic name in our bundle context.
    • isSnapshot

      public static boolean isSnapshot(org.osgi.framework.Version v)
      Check if the version is a snapshot version