+1 for RetentionPolicy.RUNTIME if that change was on the cards ( also
upstream OSGi spec change ).
The other day I was trying to integrate Guice IOC with some of our
classes which use @Reference's, if the annotation was runtime I would
have been sweet and could have attached them simply into Guice, but alas
no :(
On 14/04/12 1:03 AM, Robert Munteanu wrote:
Hi Caspar,
Thanks for your reply. I've glanced over
http://www.osgi.org/download/osgi-early-draft-2011-09.pdf and noticed that the
annotations are defined with @Retention(value=RetentionPolicy.CLASS) . I've
also found that the same will happen with the SCR annotations from Felix in the
next release ( https://issues.apache.org/jira/browse/FELIX-3247 ) .
That means that the annotations will not be available at runtime, so I will not
be able to configure components by myself in unit tests. I assume that Felix
annotations will follow the official ones, so it makes little sense to argue
for making them available at runtime.
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]