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(org.jboss.osgi.vfs.VirtualFile root) |
static BundleInfo |
createBundleInfo(org.jboss.osgi.vfs.VirtualFile root,
String location) |
static BundleInfo |
createBundleInfo(org.jboss.osgi.vfs.VirtualFile root,
String location,
org.jboss.osgi.metadata.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.
|
org.jboss.osgi.metadata.OSGiMetaData |
getOSGiMetadata()
Get the OSGi metadata
|
org.jboss.osgi.vfs.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(org.jboss.osgi.vfs.VirtualFile virtualFile)
Validate manifest from the given virtual file.
|
static boolean |
isValidBundleManifest(Manifest manifest)
Deprecated.
use
OSGiManifestBuilder.isValidBundleManifest(Manifest) |
String |
toString() |
static void |
validateBundleManifest(Manifest manifest)
Deprecated.
use
OSGiManifestBuilder.validateBundleManifest(Manifest) |
public static BundleInfo createBundleInfo(String location) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static BundleInfo createBundleInfo(URL url) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static BundleInfo createBundleInfo(org.jboss.osgi.vfs.VirtualFile root) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static BundleInfo createBundleInfo(org.jboss.osgi.vfs.VirtualFile root, String location) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static BundleInfo createBundleInfo(org.jboss.osgi.vfs.VirtualFile root, String location, org.jboss.osgi.metadata.OSGiMetaData metadata) throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
public static boolean isValidBundle(org.jboss.osgi.vfs.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 org.jboss.osgi.vfs.VirtualFile getRoot()
public URL getRootURL()
public String getSymbolicName()
public org.osgi.framework.Version getVersion()
public org.jboss.osgi.metadata.OSGiMetaData getOSGiMetadata()
public void close()
public Manifest getManifest()
Copyright © 2013 JBoss by Red Hat. All rights reserved.