felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Jencks (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FELIX-4584) Change retention to RUNTIME for Property and Properties annotations
Date Fri, 25 Jul 2014 17:37:38 GMT

    [ https://issues.apache.org/jira/browse/FELIX-4584?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14074641#comment-14074641

David Jencks commented on FELIX-4584:

I don't think its a good idea to make the felix ds annotations even more different than they
are now to the spec ds annotations, but I don't feel strongly about it.  I don't think you
are going to convince the cpeg spec committee to change the retention of the spec annotations.

Note that the annotations are not used by the DS runtime (SCR), they are translated to xml
by some tooling and the xml is used at runtime.  You could have your unit tests run the appropriate
code from the tooling to extract the annotation values.  You could also duplicate the annotation
information in the unit test.

> Change retention to RUNTIME for Property and Properties annotations
> -------------------------------------------------------------------
>                 Key: FELIX-4584
>                 URL: https://issues.apache.org/jira/browse/FELIX-4584
>             Project: Felix
>          Issue Type: Improvement
>          Components: SCR Tooling
>            Reporter: Jyrki Ruuskanen
>            Priority: Minor
> This change allows us to access Property annotation values in plain java unit tests.
Without this our unit tests would have to run in an SCR-capable container.
> You may consider changing the retention for the whole lot (why not), but at least these
two are necessary.
> https://github.com/apache/felix/pull/9

This message was sent by Atlassian JIRA

View raw message