Subject: [jira] [Commented] (COMMONSRDF-53) Add
ServiceLoader support in OSGi




[
https://issues.apache.org/jira/browse/COMMONSRDF-53?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15819014#comment-15819014
]

ASF GitHub Bot commented on COMMONSRDF-53:
------------------------------------------

GitHub user acoburn opened a pull request:

https://github.com/apache/commons-rdf/pull/29

[COMMONSRDF-53] Add ServiceLoader support in OSGi

Resolves: COMMONSRDF-53

This adds bundle metadata for the commons-rdf modules to make it easier to
work with the Java `ServiceLoader` in an OSGi context. This consolidates the
OSGi configuration, removing the `commons.osgi.symbolicName` definition and
putting all OSGi-related configuration directly in the `maven-bundle-plugin`
(now that the plugin must be explicitly configured in maven).

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/acoburn/commons-rdf osgi_serviceloader

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/commons-rdf/pull/29.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #29

----
commit 27dbd9eda02550df85734c6198a0308cf5ca55e0
Author: Aaron Coburn <acoburn@xxxxxxxxxxx>
Date: 2017-01-11T15:11:38Z

Add ServiceLoader support in OSGi

----


> Add ServiceLoader support in OSGi
> ---------------------------------
>
> Key: COMMONSRDF-53
> URL: https://issues.apache.org/jira/browse/COMMONSRDF-53
> Project: Apache Commons RDF
> Issue Type: Improvement
> Components: jena, jsonld-java, rdf4j, simple
> Affects Versions: 0.3.0
> Environment: OSGi
> Reporter: Aaron Coburn
> Labels: osgi
> Fix For: 1.0.0
>
>
> The ServiceLoader works differently in OSGi environments, such that it is
> necessary to add bundle-level metadata defining which service interfaces are
> provided by a particular OSGi bundle. This would improve OSGi support for
> commons-rdf modules.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)



Programming list archiving by: Enterprise Git Hosting