org.ops4j.pax.runner.osgi
Class RunnerBundleContext
java.lang.Object
org.ops4j.pax.runner.osgi.UnsupportedBundleContext
org.ops4j.pax.runner.osgi.RunnerBundleContext
- All Implemented Interfaces:
- org.osgi.framework.BundleContext
public class RunnerBundleContext
- extends UnsupportedBundleContext
|
Method Summary |
void |
addBundleListener(org.osgi.framework.BundleListener bundleListener)
|
void |
addServiceListener(org.osgi.framework.ServiceListener serviceListener,
java.lang.String filter)
|
org.osgi.framework.Filter |
createFilter(java.lang.String filter)
|
org.osgi.framework.Bundle |
getBundle()
|
org.osgi.framework.Bundle[] |
getBundles()
|
java.lang.String |
getProperty(java.lang.String key)
|
java.lang.Object |
getService(org.osgi.framework.ServiceReference serviceReference)
|
org.osgi.framework.ServiceReference |
getServiceReference(java.lang.String clazz)
|
org.osgi.framework.ServiceReference[] |
getServiceReferences(java.lang.String clazz,
java.lang.String filter)
|
org.osgi.framework.Bundle |
installBundle(java.lang.String location)
|
org.osgi.framework.ServiceRegistration |
registerService(java.lang.String clazz,
java.lang.Object service,
java.util.Dictionary properties)
|
| Methods inherited from class org.ops4j.pax.runner.osgi.UnsupportedBundleContext |
addFrameworkListener, addServiceListener, getAllServiceReferences, getBundle, getDataFile, installBundle, registerService, removeBundleListener, removeFrameworkListener, removeServiceListener, ungetService |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RunnerBundleContext
public RunnerBundleContext(Context context)
- Creates a new bundle context.
- Parameters:
context - the current runner context
createFilter
public org.osgi.framework.Filter createFilter(java.lang.String filter)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
createFilter in interface org.osgi.framework.BundleContext- Overrides:
createFilter in class UnsupportedBundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener serviceListener,
java.lang.String filter)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
addServiceListener in interface org.osgi.framework.BundleContext- Overrides:
addServiceListener in class UnsupportedBundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
getServiceReference
public org.osgi.framework.ServiceReference getServiceReference(java.lang.String clazz)
- Specified by:
getServiceReference in interface org.osgi.framework.BundleContext- Overrides:
getServiceReference in class UnsupportedBundleContext
getServiceReferences
public org.osgi.framework.ServiceReference[] getServiceReferences(java.lang.String clazz,
java.lang.String filter)
throws org.osgi.framework.InvalidSyntaxException
- Specified by:
getServiceReferences in interface org.osgi.framework.BundleContext- Overrides:
getServiceReferences in class UnsupportedBundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
registerService
public org.osgi.framework.ServiceRegistration registerService(java.lang.String clazz,
java.lang.Object service,
java.util.Dictionary properties)
- Specified by:
registerService in interface org.osgi.framework.BundleContext- Overrides:
registerService in class UnsupportedBundleContext
getService
public java.lang.Object getService(org.osgi.framework.ServiceReference serviceReference)
- Specified by:
getService in interface org.osgi.framework.BundleContext- Overrides:
getService in class UnsupportedBundleContext
getProperty
public java.lang.String getProperty(java.lang.String key)
- Specified by:
getProperty in interface org.osgi.framework.BundleContext- Overrides:
getProperty in class UnsupportedBundleContext
installBundle
public org.osgi.framework.Bundle installBundle(java.lang.String location)
throws org.osgi.framework.BundleException
- Specified by:
installBundle in interface org.osgi.framework.BundleContext- Overrides:
installBundle in class UnsupportedBundleContext
- Throws:
org.osgi.framework.BundleException
getBundle
public org.osgi.framework.Bundle getBundle()
- Specified by:
getBundle in interface org.osgi.framework.BundleContext- Overrides:
getBundle in class UnsupportedBundleContext
addBundleListener
public void addBundleListener(org.osgi.framework.BundleListener bundleListener)
- Specified by:
addBundleListener in interface org.osgi.framework.BundleContext- Overrides:
addBundleListener in class UnsupportedBundleContext
getBundles
public org.osgi.framework.Bundle[] getBundles()
- Specified by:
getBundles in interface org.osgi.framework.BundleContext- Overrides:
getBundles in class UnsupportedBundleContext
Copyright © 2008. All Rights Reserved.