Class BundleInfo
java.lang.Object
org.apache.sling.installer.core.impl.tasks.BundleInfo
Holds the bundle info that we need, makes it easier to test
without an OSGi framework.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal long
final int
final String
final org.osgi.framework.Version
-
Constructor Summary
ConstructorsConstructorDescriptionBundleInfo
(String symbolicName, org.osgi.framework.Version version, int state, long id) -
Method Summary
Modifier and TypeMethodDescriptionstatic BundleInfo
getBundleInfo
(org.osgi.framework.BundleContext bundleContext, String symbolicName, String version) 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.static boolean
isSnapshot
(org.osgi.framework.Version v) Check if the version is a snapshot version
-
Field Details
-
symbolicName
-
version
public final org.osgi.framework.Version version -
state
public final int state -
id
public final long id
-
-
Constructor Details
-
BundleInfo
-
-
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
-