[prev in list] [next in list] [prev in thread] [next in thread] 

List:       slf4j-dev
Subject:    [slf4j-dev] [JIRA] (SLF4J-488) Using slf4j-api-2.0.0-alpha1.jar not possible in OSGi
From:       "QOS.CH (JIRA)" <noreply-jira () qos ! ch>
Date:       2020-03-19 15:29:00
Message-ID: JIRA.16184.1584631708000.93.1584631740121 () Atlassian ! JIRA
[Download RAW message or body]

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.SLF4JS \
erviceProvider)",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)
_______________________________________________
slf4j-dev mailing list
slf4j-dev@qos.ch
http://mailman.qos.ch/mailman/listinfo/slf4j-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic