diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-04-22 13:34:40 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-04-22 13:34:40 +0200 |
commit | 1ed585f4f73593ec42d2e43085e851edc4112920 (patch) | |
tree | cd344680dc0385de3a1938dac3a58816a3f14659 /container-disc | |
parent | 42f8cc14db290d132d3cc566b6a762815c20e2a6 (diff) |
Implement additional required proxy methods by felix 4.6.1 compared to 4.2.1.
Diffstat (limited to 'container-disc')
-rw-r--r-- | container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java b/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java index 8fad9a48376..3f61442e7e4 100644 --- a/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java +++ b/container-disc/src/main/java/com/yahoo/container/jdisc/RestrictedBundleContext.java @@ -45,6 +45,22 @@ public class RestrictedBundleContext implements BundleContext { } @Override + public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> serviceReference) { + if (wrapped == null) { + return null; + } + return wrapped.getServiceObjects(serviceReference); + } + + @Override + public <S> ServiceRegistration<S> registerService(Class<S> aClass, ServiceFactory<S> serviceFactory, Dictionary<String, ?> dictionary) { + if (wrapped == null) { + return null; + } + return wrapped.registerService(aClass, serviceFactory, dictionary); + } + + @Override public ServiceReference<?>[] getServiceReferences(String localHostname, String localHostname2) throws InvalidSyntaxException { if (wrapped == null) { return new ServiceReference<?>[0]; |