[slf4j-dev] [JIRA] (SLF4J-488) Using slf4j-api-2.0.0-alpha1.jar not possible in OSGi

QOS.CH (JIRA) noreply-jira at qos.ch
Thu Mar 19 16:29:00 CET 2020


Joakim Erdfelt created SLF4J-488:
------------------------------------

             Summary: Using slf4j-api-2.0.0-alpha1.jar not possible in OSGi
                 Key: SLF4J-488
                 URL: https://jira.qos.ch/browse/SLF4J-488
             Project: SLF4J
          Issue Type: Bug
          Components: Core API
    Affects Versions: 2.0.0-alpha1
         Environment: OSGi
            Reporter: Joakim Erdfelt
            Assignee: SLF4J developers list


The ServiceLoader pieces of the {{META-INF/manifest.mf}} are missing for OSGi.

It seems to be missing the {{Require-Capability}} entry to define ServiceLoader usage.

Require-Capability=osgi.serviceloader;filter:="osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider)",osgi.extender;filter:="(osgi.extender=osgi.serviceloader.processor)"

For example, here's the one out of {{javax.websocket}}

{code}
Require-Capability: osgi.extender;filter:="(osgi.extender=osgi.servicelo
 ader.processor)",osgi.serviceloader;filter:="(osgi.serviceloader=javax.
 websocket.ContainerProvider)";resolution:=optional;cardinality:=multipl
 e,osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=11))"
{code}



--
This message was sent by Atlassian JIRA
(v7.3.1#73012)


More information about the slf4j-dev mailing list