Hi,

Guido Spadotto wrote:
> Hi all,
> I'm a bit puzzled by this (hopefully simple to solve) issue.
> 
> I'm writing an EventHandler implementation using SCR annotations.
> How do I specify multi-value  property for the topics to listen to?
> I've this at the moment, is it correct?
>    /**
>     * The OSGi Event Topics to listen to
>     *
>     * @scr.property values1="org/osgi/framework/ServiceEvent/REGISTERED"
>     *  values2="org/osgi/framework/ServiceEvent/UNREGISTERING"
>     */
>    static final String EVT_TOPICS = EventConstants.EVENT_TOPIC;
> 
Yes, this should be correct - the scr plugin assumes multi values as
soon as you have attribute names starting with "values".

> In http://felix.apache.org/site/apache-felix-maven-scr-plugin.html there
> are *two*
> paragraphs that explain how to deal with multivalue properties, and I
> can't understand
> which is the correct one.
> 
Hmm, can you point me to the two paragraphs? Or is one for the javadoc
tags (you're using above) and the other one for the java annotations?

Regards
Carsten
-- 
Carsten Ziegeler
[email protected]

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to