Equinox and Declarative Services Annotations [message #956159] |
Wed, 24 October 2012 05:34  |
Eclipse User |
|
|
|
Hi,
In the OSGi compendium specification (Release 4, Version 4.3) on page 275 annotations are defined as an alternative for the DS XML files. I noticed that the package org.osgi.service.component.annotations which contains those annotations is exported in org.osgi.services (3.3.100) which comes with the latest Equinox SDK.
I was not able to use the annotations with Equinox. Also, there are not dependencies from equinox.ds to org.osgi.service.component.annotations. I think this indicates that it's simply not implemented, right?
Are there any plans to support this or is there a known workaround e.g. using Apache SCR?
Thanks in advance.
Cheers Holger
|
|
|
|
|
|
|
Re: Equinox and Declarative Services Annotations [message #956764 is a reply to message #956450] |
Wed, 24 October 2012 15:44  |
Eclipse User |
|
|
|
Gunnar Wagenknecht wrote on Wed, 24 October 2012 10:11Has it been discussed to allow those annotations at runtime and add a
"Service-ComponentClass" header to the manifest? DS could do byte code
scanning to scan those classes for annotations and generate the
component at runtime (without loading the class).
Yes, the idea to support the annotations at runtime has been mentioned for a future spec. Such support would be necessary to allow "inheritance" of annotations so that, for example, @Reference could be used in a super class of the component implementation class.
No actual work has started on this though. The current proposals for the next DS spec update do not include this.
|
|
|
Powered by
FUDForum. Page generated in 0.30143 seconds