felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Phillip Rhodes <rhodebumpl...@gmail.com>
Subject How to specify a @Property with a valueRef?
Date Mon, 13 May 2013 21:05:20 GMT

I am trying to migrate from the a javadoc style of specifying OSGI
information to using the proper Java notations.   I am using information
that I found at the following URL
I haven't been able to find an example of creating a Property that has
a "valueRef"

Here's an example of the old style that I am trying to convert:

@scr.property name="event.topics" valueRef="ReplicationAction.EVENT_TOPIC"

I would like to be able to...

import org.apache.felix.scr.annotations.*;


    @Property(name = "service.vendor", value = "xyz"),

    @Property(name = "event.topics", ????)

I would appreciate any pointers/links to more info.  I may not have the
right google keywords to dig the answer out.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message