|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OSGiBundle
An abstraction of an OSGi Bundle.
| Method Summary | |
|---|---|
long |
getBundleId()
Returns this bundle's unique identifier. |
File |
getDataFile(String filename)
Creates a File object for a file in the persistent storage area provided for the bundle by the Framework. |
URL |
getEntry(String path)
Returns a URL to the entry at the specified path in this bundle. |
Dictionary<String,String> |
getHeaders()
Returns this bundle's Manifest headers and values. |
Dictionary<String,String> |
getHeaders(String locale)
Returns this bundle's Manifest headers and values localized to the specified locale. |
String |
getLocation()
Returns this bundle's location. |
String |
getProperty(String key)
Returns the value of the specified property. |
URL |
getResource(String name)
Find the specified resource from this bundle's class loader. |
OSGiRuntime |
getRuntime()
Get the runtime associated with this bundle. |
int |
getState()
Returns this bundle's current state. |
String |
getSymbolicName()
Returns the symbolic name of this bundle as specified by its Bundle-SymbolicName manifest header. |
Version |
getVersion()
Returns the version of this bundle. |
OSGiBundle |
loadClass(String name)
Loads the specified class using this bundle's class loader. |
void |
start()
Starts this bundle. |
void |
stop()
Stops this bundle. |
void |
uninstall()
Uninstalls this bundle. |
| Method Detail |
|---|
OSGiRuntime getRuntime()
long getBundleId()
String getSymbolicName()
Version getVersion()
String getLocation()
Dictionary<String,String> getHeaders()
Dictionary<String,String> getHeaders(String locale)
int getState()
String getProperty(String key)
File getDataFile(String filename)
OSGiBundle loadClass(String name)
throws ClassNotFoundException
name - The name of the class to load
ClassNotFoundException - If no such class can be found or if this bundle is a fragment bundleURL getEntry(String path)
path - The path name of the entry
URL getResource(String name)
name - The name of the resource.
void start()
throws BundleException
BundleException
void stop()
throws BundleException
BundleException
void uninstall()
throws BundleException
BundleException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||