Class DelegatingBundleContext
java.lang.Object
org.apache.xbean.osgi.bundle.util.DelegatingBundleContext
- All Implemented Interfaces:
org.osgi.framework.BundleContext
,org.osgi.framework.BundleReference
BundleContext for DelegatingBundle.
- Version:
- $Rev: 1308440 $ $Date: 2012-04-02 19:55:44 +0200 (Mon, 02 Apr 2012) $
-
Constructor Summary
ConstructorsConstructorDescriptionDelegatingBundleContext
(DelegatingBundle bundle, org.osgi.framework.BundleContext bundleContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addBundleListener
(org.osgi.framework.BundleListener arg0) void
addFrameworkListener
(org.osgi.framework.FrameworkListener arg0) void
addServiceListener
(org.osgi.framework.ServiceListener arg0) void
addServiceListener
(org.osgi.framework.ServiceListener arg0, String arg1) org.osgi.framework.Filter
createFilter
(String arg0) org.osgi.framework.ServiceReference<?>[]
getAllServiceReferences
(String clazz, String filter) org.osgi.framework.Bundle
org.osgi.framework.Bundle
getBundle
(long arg0) org.osgi.framework.Bundle
org.osgi.framework.Bundle[]
getDataFile
(String arg0) getProperty
(String arg0) <S> S
getService
(org.osgi.framework.ServiceReference<S> reference) <S> org.osgi.framework.ServiceObjects
<S> getServiceObjects
(org.osgi.framework.ServiceReference<S> reference) <S> org.osgi.framework.ServiceReference
<S> getServiceReference
(Class<S> clazz) org.osgi.framework.ServiceReference
<?> getServiceReference
(String clazz) <S> Collection
<org.osgi.framework.ServiceReference<S>> getServiceReferences
(Class<S> clazz, String filter) org.osgi.framework.ServiceReference<?>[]
getServiceReferences
(String clazz, String filter) org.osgi.framework.Bundle
installBundle
(String arg0) org.osgi.framework.Bundle
installBundle
(String arg0, InputStream arg1) <S> org.osgi.framework.ServiceRegistration
<S> registerService
(Class<S> clazz, org.osgi.framework.ServiceFactory<S> factory, Dictionary<String, ?> properties) <S> org.osgi.framework.ServiceRegistration
<S> registerService
(Class<S> clazz, S service, Dictionary<String, ?> properties) org.osgi.framework.ServiceRegistration
<?> registerService
(String[] classes, Object service, Dictionary<String, ?> properties) org.osgi.framework.ServiceRegistration
<?> registerService
(String clazz, Object service, Dictionary<String, ?> properties) void
removeBundleListener
(org.osgi.framework.BundleListener arg0) void
removeFrameworkListener
(org.osgi.framework.FrameworkListener arg0) void
removeServiceListener
(org.osgi.framework.ServiceListener arg0) boolean
ungetService
(org.osgi.framework.ServiceReference<?> reference)
-
Constructor Details
-
DelegatingBundleContext
public DelegatingBundleContext(DelegatingBundle bundle, org.osgi.framework.BundleContext bundleContext)
-
-
Method Details
-
getBundle
public org.osgi.framework.Bundle getBundle()- Specified by:
getBundle
in interfaceorg.osgi.framework.BundleContext
- Specified by:
getBundle
in interfaceorg.osgi.framework.BundleReference
-
addBundleListener
public void addBundleListener(org.osgi.framework.BundleListener arg0) - Specified by:
addBundleListener
in interfaceorg.osgi.framework.BundleContext
-
addFrameworkListener
public void addFrameworkListener(org.osgi.framework.FrameworkListener arg0) - Specified by:
addFrameworkListener
in interfaceorg.osgi.framework.BundleContext
-
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener arg0, String arg1) throws org.osgi.framework.InvalidSyntaxException - Specified by:
addServiceListener
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener arg0) - Specified by:
addServiceListener
in interfaceorg.osgi.framework.BundleContext
-
createFilter
public org.osgi.framework.Filter createFilter(String arg0) throws org.osgi.framework.InvalidSyntaxException - Specified by:
createFilter
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
getBundle
public org.osgi.framework.Bundle getBundle(long arg0) - 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
public <S> S getService(org.osgi.framework.ServiceReference<S> reference) - 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
-
getServiceReference
- Specified by:
getServiceReference
in interfaceorg.osgi.framework.BundleContext
-
getServiceReferences
public <S> Collection<org.osgi.framework.ServiceReference<S>> getServiceReferences(Class<S> clazz, String filter) throws org.osgi.framework.InvalidSyntaxException - Specified by:
getServiceReferences
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
-
installBundle
public org.osgi.framework.Bundle installBundle(String arg0, InputStream arg1) 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 arg0) 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 clazz, Object service, Dictionary<String, ?> properties) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
registerService
public org.osgi.framework.ServiceRegistration<?> registerService(String[] classes, Object service, Dictionary<String, ?> properties) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
registerService
public <S> org.osgi.framework.ServiceRegistration<S> registerService(Class<S> clazz, S service, Dictionary<String, ?> properties) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
removeBundleListener
public void removeBundleListener(org.osgi.framework.BundleListener arg0) - Specified by:
removeBundleListener
in interfaceorg.osgi.framework.BundleContext
-
removeFrameworkListener
public void removeFrameworkListener(org.osgi.framework.FrameworkListener arg0) - Specified by:
removeFrameworkListener
in interfaceorg.osgi.framework.BundleContext
-
removeServiceListener
public void removeServiceListener(org.osgi.framework.ServiceListener arg0) - 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
-
getBundle
- Specified by:
getBundle
in interfaceorg.osgi.framework.BundleContext
-
getServiceObjects
public <S> org.osgi.framework.ServiceObjects<S> getServiceObjects(org.osgi.framework.ServiceReference<S> reference) - Specified by:
getServiceObjects
in interfaceorg.osgi.framework.BundleContext
-
registerService
public <S> org.osgi.framework.ServiceRegistration<S> registerService(Class<S> clazz, org.osgi.framework.ServiceFactory<S> factory, Dictionary<String, ?> properties) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-