|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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(VirtualFile root)
|
static BundleInfo |
createBundleInfo(VirtualFile root,
String location)
|
boolean |
equals(Object obj)
|
static int |
getBundleManifestVersion(Manifest manifest)
Get the bundle manifest version. |
String |
getLocation()
Get the bundle location |
String |
getManifestHeader(String key)
Get the manifest header for the given key. |
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()
|
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 BundleException
BundleException
public static BundleInfo createBundleInfo(URL url) throws BundleException
BundleException
public static BundleInfo createBundleInfo(VirtualFile root) throws BundleException
BundleException
public static BundleInfo createBundleInfo(VirtualFile root, String location) throws BundleException
BundleException
public static void validateBundleManifest(Manifest manifest) throws BundleException
manifest
- The given manifest
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 VirtualFile getRoot()
public URL getRootURL()
public String getSymbolicName()
public Version getVersion()
public void close()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |