public class BundleInfo extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the accociated resources.
|
static BundleInfo |
createBundleInfo(String location) |
static BundleInfo |
createBundleInfo(URL url) |
static BundleInfo |
createBundleInfo(VirtualFile root) |
static BundleInfo |
createBundleInfo(VirtualFile root,
String location) |
static BundleInfo |
createBundleInfo(VirtualFile root,
String location,
OSGiMetaData metadata) |
boolean |
equals(Object obj) |
static int |
getBundleManifestVersion(Manifest manifest)
Get the bundle manifest version.
|
String |
getLocation()
Get the bundle location
|
Manifest |
getManifest() |
String |
getManifestHeader(String key)
Get the manifest header for the given key.
|
OSGiMetaData |
getOSGiMetadata()
Get the OSGi metadata
|
VirtualFile |
getRoot()
Get the bundle root file
|
URL |
getRootURL()
Get the bundle root url
|
String |
getSymbolicName()
Get the bundle symbolic name
|
org.osgi.framework.Version |
getVersion()
Get the bundle version
|
int |
hashCode() |
static boolean |
isValidBundle(VirtualFile virtualFile)
Validate manifest from the given virtual file.
|
static boolean |
isValidBundleManifest(Manifest manifest)
Deprecated.
|
String |
toString() |
static void |
validateBundleManifest(Manifest manifest)
Deprecated.
|
public static BundleInfo createBundleInfo(String location) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic static BundleInfo createBundleInfo(URL url) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic static BundleInfo createBundleInfo(VirtualFile root) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic static BundleInfo createBundleInfo(VirtualFile root, String location) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic static BundleInfo createBundleInfo(VirtualFile root, String location, OSGiMetaData metadata) throws org.osgi.framework.BundleException
org.osgi.framework.BundleExceptionpublic static boolean isValidBundle(VirtualFile virtualFile)
virtualFile - The virtualFile that is checked for a valid manifestpublic static boolean isValidBundleManifest(Manifest manifest)
OSGiManifestBuilder.isValidBundleManifest(Manifest)manifest - The given manifestpublic static void validateBundleManifest(Manifest manifest) throws org.osgi.framework.BundleException
OSGiManifestBuilder.validateBundleManifest(Manifest)manifest - The given manifestorg.osgi.framework.BundleException - if the given manifest is not a validpublic static int getBundleManifestVersion(Manifest manifest)
manifest - The given manifestpublic String getManifestHeader(String key)
public String getLocation()
public VirtualFile getRoot()
public URL getRootURL()
public String getSymbolicName()
public org.osgi.framework.Version getVersion()
public OSGiMetaData getOSGiMetadata()
public void close()
public Manifest getManifest()
Copyright © 2016 JBoss by Red Hat. All rights reserved.