[jpa] Fix service capabilities git-svn-id: https://svn.apache.org/repos/asf/aries/trunk/jpa@1739112 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/aries-jpa/repo Commit: http://git-wip-us.apache.org/repos/asf/aries-jpa/commit/5f039521 Tree: http://git-wip-us.apache.org/repos/asf/aries-jpa/tree/5f039521 Diff: http://git-wip-us.apache.org/repos/asf/aries-jpa/diff/5f039521 Branch: refs/heads/master Commit: 5f039521fd0226a69f1b7110c5d3eaccb9a04b45 Parents: f1ff904 Author: gnodet <gnodet@13f79535-47bb-0310-9956-ffa450edef68> Authored: Thu Apr 14 14:14:01 2016 +0000 Committer: gnodet <gnodet@13f79535-47bb-0310-9956-ffa450edef68> Committed: Thu Apr 14 14:14:01 2016 +0000 ---------------------------------------------------------------------- jpa-container/osgi.bnd | 3 +-- jpa-support/osgi.bnd | 7 ++----- 2 files changed, 3 insertions(+), 7 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/aries-jpa/blob/5f039521/jpa-container/osgi.bnd ---------------------------------------------------------------------- diff --git a/jpa-container/osgi.bnd b/jpa-container/osgi.bnd index 9992fcf..aed8b5a 100644 --- a/jpa-container/osgi.bnd +++ b/jpa-container/osgi.bnd @@ -3,6 +3,5 @@ Import-Package: \ javax.persistence.spi;version="[1.1,3)", \ * Bundle-Activator: org.apache.aries.jpa.container.impl.Activator -Export-Service: \ - javax.persistence.EntityManagerFactory Provide-Capability: osgi.extender;osgi.extender=aries.jpa;version:Version="${project.version.clean}" +Require-Capability: osgi.service;effective:=active;filter:="(objectClass=javax.persistence.spi.PersistenceProvider)" http://git-wip-us.apache.org/repos/asf/aries-jpa/blob/5f039521/jpa-support/osgi.bnd ---------------------------------------------------------------------- diff --git a/jpa-support/osgi.bnd b/jpa-support/osgi.bnd index 162da6a..8873499 100644 --- a/jpa-support/osgi.bnd +++ b/jpa-support/osgi.bnd @@ -3,8 +3,5 @@ Import-Package: \ javax.persistence.spi;version="[1.1,3)", \ * Bundle-Activator: org.apache.aries.jpa.support.osgi.impl.Activator -Export-Service: \ - javax.persistence.EntityManager, - org.apache.aries.jpa.template.JpaTemplate -Import-Service:\ - org.osgi.service.coordinator.Coordinator +Require-Capability:\ + osgi.service;effective:=active;filter:="(objectClass=org.osgi.service.coordinator.Coordinator)"