|
||||||||||
| 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. |
java.io.File |
getDataFile(java.lang.String filename)
Creates a File object for a file in the persistent storage area provided for the bundle by the Framework. |
java.net.URL |
getEntry(java.lang.String path)
Returns a URL to the entry at the specified path in this bundle. |
java.util.Dictionary<java.lang.String,java.lang.String> |
getHeaders()
Returns this bundle's Manifest headers and values. |
java.util.Dictionary<java.lang.String,java.lang.String> |
getHeaders(java.lang.String locale)
Returns this bundle's Manifest headers and values localized to the specified locale. |
java.lang.String |
getLocation()
Returns this bundle's location. |
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the specified property. |
java.net.URL |
getResource(java.lang.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. |
java.lang.String |
getSymbolicName()
Returns the symbolic name of this bundle as specified by its Bundle-SymbolicName manifest header. |
org.osgi.framework.Version |
getVersion()
Returns the version of this bundle. |
OSGiBundle |
loadClass(java.lang.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()
java.lang.String getSymbolicName()
org.osgi.framework.Version getVersion()
java.lang.String getLocation()
java.util.Dictionary<java.lang.String,java.lang.String> getHeaders()
java.util.Dictionary<java.lang.String,java.lang.String> getHeaders(java.lang.String locale)
int getState()
java.lang.String getProperty(java.lang.String key)
java.io.File getDataFile(java.lang.String filename)
OSGiBundle loadClass(java.lang.String name)
throws java.lang.ClassNotFoundException
name - The name of the class to load
java.lang.ClassNotFoundException - If no such class can be found or if this bundle is a fragment bundlejava.net.URL getEntry(java.lang.String path)
path - The path name of the entry
java.net.URL getResource(java.lang.String name)
name - The name of the resource.
void start()
throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void stop()
throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
void uninstall()
throws org.osgi.framework.BundleException
org.osgi.framework.BundleException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||