|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.osgi.testing.internal.OSGiRuntimeImpl
org.jboss.osgi.testing.internal.EmbeddedRuntime
public class EmbeddedRuntime
An embedded implementation of the OSGiRuntime
| Constructor Summary | |
|---|---|
EmbeddedRuntime(OSGiRuntimeHelper helper)
|
|
| Method Summary | |
|---|---|
void |
addCapability(Capability capability)
Add a Capability to the runtime. |
OSGiBundle |
getBundle(long bundleId)
Get the OSGiBundle for a given bundle id. |
OSGiBundle[] |
getBundles()
Get the array of installed OSGiBundles |
static MBeanServer |
getLocalMBeanServer()
|
MBeanServerConnection |
getMBeanServer()
Get the MBeanServerConnection for this OSGiRuntime |
OSGiServiceReference |
getServiceReference(String clazz)
Returns a ServiceReference object for a service that implements and was registered under the specified class. |
OSGiServiceReference[] |
getServiceReferences(String clazz,
String filter)
Returns an array of ServiceReference objects. |
boolean |
isRemoteRuntime()
Return true if this OSGiRuntime connects to a remote Framework. |
void |
refreshPackages(OSGiBundle[] bundles)
Refresh the packages through PackageAdmin.refreshPackages(org.osgi.framework.Bundle[]) |
void |
shutdown()
Shutdown the OSGiRuntime. |
| Methods inherited from class org.jboss.osgi.testing.internal.OSGiRuntimeImpl |
|---|
getBundle, getBundleStateMBean, getFrameworkMBean, getInitialContext, getMBeanProxy, getPackageStateMBean, getServerHost, getServiceReference, getServiceStateMBean, getTestHelper, installBundle, installBundle, installBundle, removeCapability |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EmbeddedRuntime(OSGiRuntimeHelper helper)
| Method Detail |
|---|
public static MBeanServer getLocalMBeanServer()
public OSGiBundle[] getBundles()
OSGiRuntimeOSGiBundles
public OSGiBundle getBundle(long bundleId)
OSGiRuntimeOSGiBundle for a given bundle id.
public OSGiServiceReference getServiceReference(String clazz)
OSGiRuntime
public OSGiServiceReference[] getServiceReferences(String clazz,
String filter)
OSGiRuntime
public void addCapability(Capability capability)
throws org.osgi.framework.BundleException
OSGiRuntimeCapability to the runtime.
Adding a capability recursively adds the orderded set of dependent capabilities
before it installs and starts the orderded set bundles.
addCapability in interface OSGiRuntimeaddCapability in class OSGiRuntimeImplorg.osgi.framework.BundleException
public void refreshPackages(OSGiBundle[] bundles)
throws IOException
OSGiRuntimePackageAdmin.refreshPackages(org.osgi.framework.Bundle[])
IOExceptionpublic void shutdown()
OSGiRuntimeOSGiRuntime.
This will remove added Capability.
shutdown in interface OSGiRuntimeshutdown in class OSGiRuntimeImplpublic MBeanServerConnection getMBeanServer()
OSGiRuntimeOSGiRuntime
public boolean isRemoteRuntime()
OSGiRuntimeOSGiRuntime connects to a remote Framework.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||