|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.testing.internal.OSGiBundleImpl
org.jboss.osgi.testing.internal.EmbeddedBundle
public class EmbeddedBundle
An OSGi Test Case
| Constructor Summary | |
|---|---|
EmbeddedBundle(OSGiRuntimeImpl runtime,
org.osgi.framework.Bundle bundle)
|
|
| Method Summary | |
|---|---|
org.osgi.framework.Bundle |
getBundle()
|
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. |
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. |
org.osgi.framework.Version |
getVersion()
Returns the version of this bundle. |
OSGiBundle |
loadClass(String name)
Loads the specified class using this bundle's class loader. |
protected void |
startInternal()
|
protected void |
stopInternal()
|
protected void |
uninstallInternal()
|
| Methods inherited from class org.jboss.osgi.testing.internal.OSGiBundleImpl |
|---|
equals, getRuntime, hashCode, start, stop, toString, uninstall |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedBundle(OSGiRuntimeImpl runtime,
org.osgi.framework.Bundle bundle)
| Method Detail |
|---|
public org.osgi.framework.Bundle getBundle()
public int getState()
OSGiBundle
public String getSymbolicName()
OSGiBundle
public org.osgi.framework.Version getVersion()
OSGiBundle
public String getLocation()
OSGiBundle
public Dictionary<String,String> getHeaders()
OSGiBundle
public Dictionary<String,String> getHeaders(String locale)
OSGiBundle
public long getBundleId()
OSGiBundle
public String getProperty(String key)
OSGiBundle
public URL getEntry(String path)
OSGiBundle
path - The path name of the entry
public URL getResource(String name)
OSGiBundle
name - The name of the resource.
public File getDataFile(String filename)
OSGiBundle
public OSGiBundle loadClass(String name)
throws ClassNotFoundException
OSGiBundle
name - The name of the class to load
ClassNotFoundException - If no such class can be found or if this bundle is a fragment bundle
protected void startInternal()
throws org.osgi.framework.BundleException
startInternal in class OSGiBundleImplorg.osgi.framework.BundleException
protected void stopInternal()
throws org.osgi.framework.BundleException
stopInternal in class OSGiBundleImplorg.osgi.framework.BundleException
protected void uninstallInternal()
throws org.osgi.framework.BundleException
uninstallInternal in class OSGiBundleImplorg.osgi.framework.BundleException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||