|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface OSGiRuntime
An abstraction of an OSGi Runtime.
| Method Summary | |
|---|---|
void |
addCapability(Capability capability)
Add a Capability to the runtime. |
OSGiBundle |
getBundle(java.lang.String symbolicName,
java.lang.String version)
Get the OSGiBundle for a given symbolic name and version
In case the version is left unspecified, it returns the first bundle that
matches the symbolic name. |
OSGiBundle[] |
getBundles()
Get the array of installed OSGiBundles |
javax.naming.InitialContext |
getInitialContext()
Get the initial naming context for this OSGiRuntime |
javax.management.MBeanServerConnection |
getMBeanServer()
Get the MBeanServerConnection for this OSGiRuntime |
OSGiPackageAdmin |
getPackageAdmin()
Get an abstraction of the PackageAdmin. |
java.lang.String |
getServerHost()
Get the host name that this OSGiRuntime is running on. |
OSGiServiceReference |
getServiceReference(java.lang.String clazz)
Returns a ServiceReference object for a service that implements and was registered under the specified class. |
OSGiServiceReference[] |
getServiceReferences(java.lang.String clazz,
java.lang.String filter)
Returns an array of ServiceReference objects. |
OSGiBundle |
installBundle(java.lang.String location)
Install an OSGiBundle from the given location. |
void |
removeCapability(Capability capability)
Remove a Capability from the runtime. |
void |
shutdown()
Shutdown the OSGiRuntime. |
void |
startLogEntryTracking(LogEntryCache logEntryCache)
Start log entry tracking for this OSGiRuntime |
void |
stopLogEntryTracking()
Stop log entry tracking for this OSGiRuntime |
| Method Detail |
|---|
void addCapability(Capability capability)
throws org.osgi.framework.BundleException
Capability to the runtime.
Adding a capability recursively adds the orderded set of dependent capabilities
before it installs and starts the orderded set bundles.
org.osgi.framework.BundleExceptionvoid removeCapability(Capability capability)
Capability from the runtime.
Removing a capability does the reverse of addCapability(Capability).
OSGiBundle installBundle(java.lang.String location)
throws org.osgi.framework.BundleException
OSGiBundle from the given location.
org.osgi.framework.BundleExceptionOSGiBundle[] getBundles()
OSGiBundles
OSGiBundle getBundle(java.lang.String symbolicName,
java.lang.String version)
OSGiBundle for a given symbolic name and version
In case the version is left unspecified, it returns the first bundle that
matches the symbolic name.
version - may be null
OSGiPackageAdmin getPackageAdmin()
PackageAdmin.
OSGiServiceReference getServiceReference(java.lang.String clazz)
OSGiServiceReference[] getServiceReferences(java.lang.String clazz,
java.lang.String filter)
throws org.osgi.framework.InvalidSyntaxException
org.osgi.framework.InvalidSyntaxExceptionvoid startLogEntryTracking(LogEntryCache logEntryCache)
OSGiRuntime
RemoteLogCapability}void stopLogEntryTracking()
OSGiRuntime
RemoteLogCapability}
javax.naming.InitialContext getInitialContext()
throws javax.naming.NamingException
OSGiRuntime
javax.naming.NamingExceptionjavax.management.MBeanServerConnection getMBeanServer()
OSGiRuntime
java.lang.String getServerHost()
OSGiRuntime is running on.
This is the value of the 'jboss.bind.address' system property.
void shutdown()
OSGiRuntime.
This will remove all added Capability.
The installed bundles are currently NOT uninstalled automatically.
[TODO] JBOSGI-93
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||