sling-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konrad Windszus (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (SLING-7624) Add OSGi7 component property annotations for Servlet and Filter
Date Sun, 13 May 2018 14:00:00 GMT

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

Konrad Windszus edited comment on SLING-7624 at 5/13/18 1:59 PM:
-----------------------------------------------------------------

Unfortunately the spec doesn't allow to overwrite the generated element name. Therefore it
is always derived from the annotation's element name with the according mapping rule (as defined
in OSGi Compendium 7, 112.8.2.1). And since the property must be named {{sling.servlet.resourceTypes}}
the annotations element name must unfortunately be {{sling_servlet_resourceTypes}}.


was (Author: kwin):
Unfortunately the spec doesn't allow to overwrite the generated element name. Therefore it
is always derived from the annotation's element name with the according mapping rule. And
since the property must be named {{sling.servlet.resourceTypes}} the annotations element name
must unfortunately be {{sling_servlet_resourceTypes}}.

> Add OSGi7 component property annotations for Servlet and Filter
> ---------------------------------------------------------------
>
>                 Key: SLING-7624
>                 URL: https://issues.apache.org/jira/browse/SLING-7624
>             Project: Sling
>          Issue Type: New Feature
>          Components: Servlets
>            Reporter: Konrad Windszus
>            Assignee: Konrad Windszus
>            Priority: Major
>
> Previously there were annotations hosted at Felix for Sling Servlets/Filters as custom
Felix SCR annotations (https://github.com/apache/felix/tree/trunk/tools/org.apache.felix.scr.annotations/src/main/java/org/apache/felix/scr/annotations/sling).
With OSGi R7 and DS 1.4 component property annotations are specified. Sling should provide
those annotations in a dedicated new artifact. Compare also with FELIX-5396.
> Those are supported in the upcoming bnd 4.0 (https://github.com/bndtools/bnd/issues/2163).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message