|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.spi.util.BundleInfo
public class BundleInfo
Primitive access to bundle meta data and root virtual file. The bundle info can be constructed from various locations. If that succeeds, there is a valid OSGi Manifest.
| Method Summary | |
|---|---|
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)
|
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.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()
|
String |
toString()
|
static void |
validateBundleManifest(Manifest manifest)
Validate a given bundle manifest. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
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 void validateBundleManifest(Manifest manifest)
throws org.osgi.framework.BundleException
manifest - The given manifest
org.osgi.framework.BundleException - if this is not a valid bundle manifestpublic static int getBundleManifestVersion(Manifest manifest)
manifest - The given manifest
public 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 void close()
public Manifest getManifest()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||