Package com.yahoo.container.jdisc
Class RestrictedBundleContext
java.lang.Object
com.yahoo.container.jdisc.RestrictedBundleContext
- All Implemented Interfaces:
org.osgi.framework.BundleContext
,org.osgi.framework.BundleReference
- Author:
- Einar M R Rosenvinge
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addBundleListener
(org.osgi.framework.BundleListener bundleListener) void
addFrameworkListener
(org.osgi.framework.FrameworkListener frameworkListener) void
addServiceListener
(org.osgi.framework.ServiceListener serviceListener) void
addServiceListener
(org.osgi.framework.ServiceListener serviceListener, String localHostname) org.osgi.framework.Filter
createFilter
(String localHostname) org.osgi.framework.ServiceReference<?>[]
getAllServiceReferences
(String localHostname, String localHostname2) org.osgi.framework.Bundle
org.osgi.framework.Bundle
getBundle
(long l) org.osgi.framework.Bundle
org.osgi.framework.Bundle[]
getDataFile
(String localHostname) getProperty
(String localHostname) <S> S
getService
(org.osgi.framework.ServiceReference<S> sServiceReference) <S> org.osgi.framework.ServiceObjects<S>
getServiceObjects
(org.osgi.framework.ServiceReference<S> serviceReference) <S> org.osgi.framework.ServiceReference<S>
getServiceReference
(Class<S> sClass) org.osgi.framework.ServiceReference<?>
getServiceReference
(String localHostname) <S> Collection<org.osgi.framework.ServiceReference<S>>
getServiceReferences
(Class<S> sClass, String localHostname) org.osgi.framework.ServiceReference<?>[]
getServiceReferences
(String localHostname, String localHostname2) org.osgi.framework.Bundle
installBundle
(String localHostname) org.osgi.framework.Bundle
installBundle
(String localHostname, InputStream inputStream) <S> org.osgi.framework.ServiceRegistration<S>
registerService
(Class<S> aClass, org.osgi.framework.ServiceFactory<S> serviceFactory, Dictionary<String, ?> dictionary) <S> org.osgi.framework.ServiceRegistration<S>
registerService
(Class<S> sClass, S s, Dictionary<String, ?> stringDictionary) org.osgi.framework.ServiceRegistration<?>
registerService
(String[] strings, Object o, Dictionary<String, ?> stringDictionary) org.osgi.framework.ServiceRegistration<?>
registerService
(String localHostname, Object o, Dictionary<String, ?> stringDictionary) void
removeBundleListener
(org.osgi.framework.BundleListener bundleListener) void
removeFrameworkListener
(org.osgi.framework.FrameworkListener frameworkListener) void
removeServiceListener
(org.osgi.framework.ServiceListener serviceListener) boolean
ungetService
(org.osgi.framework.ServiceReference<?> serviceReference)
-
Constructor Details
-
RestrictedBundleContext
public RestrictedBundleContext(org.osgi.framework.BundleContext wrapped)
-
-
Method Details
-
registerService
public org.osgi.framework.ServiceRegistration<?> registerService(String[] strings, Object o, Dictionary<String, ?> stringDictionary) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
registerService
public org.osgi.framework.ServiceRegistration<?> registerService(String localHostname, Object o, Dictionary<String, ?> stringDictionary) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
registerService
public <S> org.osgi.framework.ServiceRegistration<S> registerService(Class<S> sClass, S s, Dictionary<String, ?> stringDictionary) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
registerService
public <S> org.osgi.framework.ServiceRegistration<S> registerService(Class<S> aClass, org.osgi.framework.ServiceFactory<S> serviceFactory, Dictionary<String, ?> dictionary) - Specified by:
registerService
in interfaceorg.osgi.framework.BundleContext
-
getServiceReferences
public org.osgi.framework.ServiceReference<?>[] getServiceReferences(String localHostname, String localHostname2) 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 localHostname, String localHostname2) throws org.osgi.framework.InvalidSyntaxException - Specified by:
getAllServiceReferences
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
getServiceReference
- Specified by:
getServiceReference
in interfaceorg.osgi.framework.BundleContext
-
getServiceReference
- Specified by:
getServiceReference
in interfaceorg.osgi.framework.BundleContext
-
getServiceReferences
public <S> Collection<org.osgi.framework.ServiceReference<S>> getServiceReferences(Class<S> sClass, String localHostname) throws org.osgi.framework.InvalidSyntaxException - Specified by:
getServiceReferences
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
getService
public <S> S getService(org.osgi.framework.ServiceReference<S> sServiceReference) - Specified by:
getService
in interfaceorg.osgi.framework.BundleContext
-
ungetService
public boolean ungetService(org.osgi.framework.ServiceReference<?> serviceReference) - Specified by:
ungetService
in interfaceorg.osgi.framework.BundleContext
-
getServiceObjects
public <S> org.osgi.framework.ServiceObjects<S> getServiceObjects(org.osgi.framework.ServiceReference<S> serviceReference) - Specified by:
getServiceObjects
in interfaceorg.osgi.framework.BundleContext
-
getProperty
- Specified by:
getProperty
in interfaceorg.osgi.framework.BundleContext
-
getBundle
public org.osgi.framework.Bundle getBundle()- Specified by:
getBundle
in interfaceorg.osgi.framework.BundleContext
- Specified by:
getBundle
in interfaceorg.osgi.framework.BundleReference
-
installBundle
public org.osgi.framework.Bundle installBundle(String localHostname, InputStream inputStream) 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 localHostname) throws org.osgi.framework.BundleException - Specified by:
installBundle
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.BundleException
-
getBundle
public org.osgi.framework.Bundle getBundle(long l) - Specified by:
getBundle
in interfaceorg.osgi.framework.BundleContext
-
getBundles
public org.osgi.framework.Bundle[] getBundles()- Specified by:
getBundles
in interfaceorg.osgi.framework.BundleContext
-
addServiceListener
public void addServiceListener(org.osgi.framework.ServiceListener serviceListener, String localHostname) 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 serviceListener) - Specified by:
addServiceListener
in interfaceorg.osgi.framework.BundleContext
-
removeServiceListener
public void removeServiceListener(org.osgi.framework.ServiceListener serviceListener) - Specified by:
removeServiceListener
in interfaceorg.osgi.framework.BundleContext
-
addBundleListener
public void addBundleListener(org.osgi.framework.BundleListener bundleListener) - Specified by:
addBundleListener
in interfaceorg.osgi.framework.BundleContext
-
removeBundleListener
public void removeBundleListener(org.osgi.framework.BundleListener bundleListener) - Specified by:
removeBundleListener
in interfaceorg.osgi.framework.BundleContext
-
addFrameworkListener
public void addFrameworkListener(org.osgi.framework.FrameworkListener frameworkListener) - Specified by:
addFrameworkListener
in interfaceorg.osgi.framework.BundleContext
-
removeFrameworkListener
public void removeFrameworkListener(org.osgi.framework.FrameworkListener frameworkListener) - Specified by:
removeFrameworkListener
in interfaceorg.osgi.framework.BundleContext
-
getDataFile
- Specified by:
getDataFile
in interfaceorg.osgi.framework.BundleContext
-
createFilter
public org.osgi.framework.Filter createFilter(String localHostname) throws org.osgi.framework.InvalidSyntaxException - Specified by:
createFilter
in interfaceorg.osgi.framework.BundleContext
- Throws:
org.osgi.framework.InvalidSyntaxException
-
getBundle
- Specified by:
getBundle
in interfaceorg.osgi.framework.BundleContext
-