Projects
openEuler:24.03:SP1:Everything
xbean
_service:tar_scm:0002-Port-to-Eclipse-Luna-OSGi...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0002-Port-to-Eclipse-Luna-OSGi.patch of Package xbean
From 9e1bb9bfee86490163fb1e226556620aa8cdf7bc Mon Sep 17 00:00:00 2001 From: Mikolaj Izdebski <mizdebsk@redhat.com> Date: Fri, 21 Nov 2014 10:05:05 +0100 Subject: [PATCH 2/3] Port to Eclipse Luna OSGi --- xbean-bundleutils/pom.xml | 8 +------- .../apache/xbean/osgi/bundle/util/DelegatingBundleContext.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/xbean-bundleutils/pom.xml b/xbean-bundleutils/pom.xml index 72f4865..2b3459d 100644 --- a/xbean-bundleutils/pom.xml +++ b/xbean-bundleutils/pom.xml @@ -35,15 +35,9 @@ <artifactId>slf4j-api</artifactId> </dependency> <dependency> - <groupId>org.osgi</groupId> - <artifactId>org.osgi.core</artifactId> - <version>4.3.1</version> - <scope>provided</scope> - </dependency> - <dependency> <groupId>org.eclipse</groupId> <artifactId>osgi</artifactId> - <version>3.6.0.v20100517</version> + <version>3.10.0-v20140606-1445</version> <scope>provided</scope> </dependency> </dependencies> diff --git a/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java b/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java index 58a392b..cc8d081 100644 --- a/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java +++ b/xbean-bundleutils/src/main/java/org/apache/xbean/osgi/bundle/util/DelegatingBundleContext.java @@ -31,7 +31,9 @@ import org.osgi.framework.BundleListener; import org.osgi.framework.Filter; import org.osgi.framework.FrameworkListener; import org.osgi.framework.InvalidSyntaxException; +import org.osgi.framework.ServiceFactory; import org.osgi.framework.ServiceListener; +import org.osgi.framework.ServiceObjects; import org.osgi.framework.ServiceReference; import org.osgi.framework.ServiceRegistration; @@ -153,5 +155,13 @@ public class DelegatingBundleContext implements BundleContext { public Bundle getBundle(String location) { return bundleContext.getBundle(location); } + + public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) { + return bundleContext.getServiceObjects(reference); + } + + public <S> ServiceRegistration<S> registerService(Class<S> clazz, ServiceFactory<S> factory, Dictionary<String, ?> properties) { + return bundleContext.registerService(clazz, factory, properties); + } } -- 2.9.3
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2