|
Re: Equinox and Declarative Services Annotations [message #956195 is a reply to message #956159] |
Wed, 24 October 2012 10:02 |
|
Hi Holger,
Am 24.10.2012 11:34, schrieb Holger Staudacher:
> 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.
AFAIK the annotations are not interpret at runtime. They are only useful
for at build time when the XML file is actually generated. DS still
relies on the XML file currently.
There is a contribution in Bugzilla to add such a build processing step
to PDE. But the activity on the bug is not very promising. Do you know
if there is a Tycho/Maven plug-in which can generate the XML?
-Gunnar
--
Gunnar Wagenknecht
gunnar@xxxxxxxx
http://wagenknecht.org/
|
|
|
|
Re: Equinox and Declarative Services Annotations [message #956450 is a reply to message #956381] |
Wed, 24 October 2012 14:11 |
|
Thanks BJ for clarifying.
I know there is some improvement work happening for DS.
Has 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).
-Gunnar
--
Gunnar Wagenknecht
gunnar@xxxxxxxx
http://wagenknecht.org/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04531 seconds