Package org.nuxeo.osgi
Class OSGiBundleContext
java.lang.Object
org.nuxeo.osgi.OSGiBundleContext
- All Implemented Interfaces:
org.osgi.framework.BundleContext
- Author:
- Bogdan Stefanescu
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBundleListener
(org.osgi.framework.BundleListener listener) void
addFrameworkListener
(org.osgi.framework.FrameworkListener listener) void
addServiceListener
(org.osgi.framework.ServiceListener listener) void
addServiceListener
(org.osgi.framework.ServiceListener listener, String filter) org.osgi.framework.Filter
createFilter
(String filter) org.osgi.framework.ServiceReference[]
getAllServiceReferences
(String clazz, String filter) org.osgi.framework.Bundle
org.osgi.framework.Bundle
getBundle
(long id) org.osgi.framework.Bundle[]
getDataFile
(String filename) getProperty
(String key) getService
(org.osgi.framework.ServiceReference reference) org.osgi.framework.ServiceReference
getServiceReference
(String clazz) org.osgi.framework.ServiceReference[]
getServiceReferences
(String clazz, String filter) org.osgi.framework.Bundle
installBundle
(String location) org.osgi.framework.Bundle
installBundle
(String location, InputStream input) org.osgi.framework.ServiceRegistration
registerService
(String[] clazzes, Object service, Dictionary properties) org.osgi.framework.ServiceRegistration
registerService
(String clazz, Object service, Dictionary properties) void
removeBundleListener
(org.osgi.framework.BundleListener listener) void
removeFrameworkListener
(org.osgi.framework.FrameworkListener listener) void
removeServiceListener
(org.osgi.framework.ServiceListener listener) boolean
ungetService
(org.osgi.framework.ServiceReference reference)
-
Constructor Details
-
OSGiBundleContext
-
-
Method Details
-
getOSGiAdapter
-
addBundleListener
public void addBundleListener(org.osgi.framework.BundleListener listener) - Specified by:
addBundleListener
in interfaceorg.osgi.framework.BundleContext
-
addFrameworkListener
public void addFrameworkListener(org.osgi.framework.FrameworkListener listener) - Specified by:
addFrameworkListener
in interfaceorg.osgi.framework.BundleContext
-
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener listener) - Specified by:
addServiceListener
in interfaceorg.osgi.framework.BundleContext
-
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener listener, String filter) throws org.osgi.framework.InvalidSyntaxException - Specified by:
addServiceListener
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
createFilter
public org.osgi.framework.Filter createFilter(String filter) throws org.osgi.framework.InvalidSyntaxException - Specified by:
createFilter
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
getAllServiceReferences
public org.osgi.framework.ServiceReference[] getAllServiceReferences(String clazz, String filter) throws org.osgi.framework.InvalidSyntaxException - Specified by:
getAllServiceReferences
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
getBundle
public org.osgi.framework.Bundle getBundle()- Specified by:
getBundle
in interfaceorg.osgi.framework.BundleContext
-
getBundle
public org.osgi.framework.Bundle getBundle(long id) - Specified by:
getBundle
in interfaceorg.osgi.framework.BundleContext
-
getBundles
public org.osgi.framework.Bundle[] getBundles()- Specified by:
getBundles
in interfaceorg.osgi.framework.BundleContext
-
getDataFile
- Specified by:
getDataFile
in interfaceorg.osgi.framework.BundleContext
-
getProperty
- Specified by:
getProperty
in interfaceorg.osgi.framework.BundleContext
-
getService
- Specified by:
getService
in interfaceorg.osgi.framework.BundleContext
-
getServiceReference
- Specified by:
getServiceReference
in interfaceorg.osgi.framework.BundleContext
-
getServiceReferences
public org.osgi.framework.ServiceReference[] getServiceReferences(String clazz, String filter) throws org.osgi.framework.InvalidSyntaxException - Specified by:
getServiceReferences
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
installBundle
public org.osgi.framework.Bundle installBundle(String location) throws org.osgi.framework.BundleException - Specified by:
installBundle
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.BundleException
-
installBundle
public org.osgi.framework.Bundle installBundle(String location, InputStream input) throws org.osgi.framework.BundleException - Specified by:
installBundle
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.BundleException
-
registerService
public org.osgi.framework.ServiceRegistration registerService(String[] clazzes, Object service, Dictionary properties) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
registerService
public org.osgi.framework.ServiceRegistration registerService(String clazz, Object service, Dictionary properties) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
removeBundleListener
public void removeBundleListener(org.osgi.framework.BundleListener listener) - Specified by:
removeBundleListener
in interfaceorg.osgi.framework.BundleContext
-
removeFrameworkListener
public void removeFrameworkListener(org.osgi.framework.FrameworkListener listener) - Specified by:
removeFrameworkListener
in interfaceorg.osgi.framework.BundleContext
-
removeServiceListener
public void removeServiceListener(org.osgi.framework.ServiceListener listener) - Specified by:
removeServiceListener
in interfaceorg.osgi.framework.BundleContext
-
ungetService
public boolean ungetService(org.osgi.framework.ServiceReference reference) - Specified by:
ungetService
in interfaceorg.osgi.framework.BundleContext
-