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

Bertrand Delacretaz commented on SLING-9055:
--------------------------------------------

As explained in Konrad's PR the meta-annotation approach does not work at this 
point, although if seems to conform to the OSGi spec about 
{{ComponentPropertyType}}.

Here's the relevant links in case we want to revisit this later:

 * OSGi blog post mentioning 
[ComponentPropertyType|https://blog.osgi.org/2018/03/osgi-r7-highlights-declarative-services.html]
 * bnd lib code that processes these annotations: 
[DSAnnotationReader|https://github.com/bndtools/bnd/blob/7c64c869ccaa9f7b9a5f64b6ab5954cee016a807/biz.aQute.bndlib/src/aQute/bnd/component/DSAnnotationReader.java#L605]
 * Bugzilla ticket reporting the problem: 
[#250|https://osgi.org/bugzilla/show_bug.cgi?id=250]

> Implement a new SlingServletPathsStrict annotation
> --------------------------------------------------
>
>                 Key: SLING-9055
>                 URL: https://issues.apache.org/jira/browse/SLING-9055
>             Project: Sling
>          Issue Type: Improvement
>          Components: Servlets
>    Affects Versions: Sling Servlet Annotations 1.2.4
>            Reporter: Bertrand Delacretaz
>            Assignee: Bertrand Delacretaz
>            Priority: Minor
>             Fix For: Sling Servlet Annotations 1.2.6, Servlets Resolver 2.6.6
>
>
> We need a new annotation to use the new {{sling.servlet.paths.strict}} mode 
> introduced by SLING-8110, allowing to specify the extension, selectors and 
> methods (all optional) that this mode takes into account.
> As discussed on the Sling dev list, this annotation should use a 
> {{@Requirement}} meta-annotation [1] to generate an OSGi requirement for the 
> version of the 
> {{o.a.s.servlets.resolver}} bundle which includes this functionality.
> [1] 
> https://osgi.org/specification/osgi.core/7.0.0/framework.api.html#org.osgi.annotation.bundle.Requirement



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to