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
|
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 BundleException
BundleExceptionpublic static BundleInfo createBundleInfo(URL url) throws BundleException
BundleExceptionpublic static BundleInfo createBundleInfo(VirtualFile root) throws BundleException
BundleExceptionpublic static BundleInfo createBundleInfo(VirtualFile root, String location) throws BundleException
BundleExceptionpublic static BundleInfo createBundleInfo(VirtualFile root, String location, OSGiMetaData metadata) throws BundleException
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 BundleException
OSGiManifestBuilder.validateBundleManifest(Manifest)manifest - The given manifestBundleException - 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 Version getVersion()
public OSGiMetaData getOSGiMetadata()
public void close()
public Manifest getManifest()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.