Yes there is.

You don't specify which flavour of annotations you are using. Assuming the
standard ones from DS 1.2:

    @Component(properties = { "foo=bar", "foo=baz" })

Alternatively with the bnd annotations:

    @Component(properties = "foo=bar|baz")

Regards
Neil

On Tue, Apr 16, 2013 at 9:12 PM, Raymond Auge <[email protected]>wrote:

> Is there a way to pass multiple values to a DS component property?
>
> I think there is not, but I was hoping I've missed something.
>
> An example of this might be:
>
> @Component(
> properties={
> "lifecycle.event=global.startup.events",
>  "lifecycle.event=application.startup.events"
> }
> )
>
> or
>
> @Component(
> properties={
> "lifecycle.event=[global.startup.events,application.startup.events]"
>  }
> )
>
> etc.
>
> Thoughts?
>
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
> <http://twitter.com/#!/rotty3000> | Senior Software Architect | *Liferay,
> Inc.* <http://www.liferay.com>  <https://twitter.com/#!/liferay>
>
> ---
>
> 24-25 October 2012 |* Liferay **Spain Symposium* | 
> liferay.com/spain2012<http://www.liferay.com/spain2012>
>
> 16 November 2012 |* Liferay **Italy Symposium* | 
> liferay.com/italy2012<http://www.liferay.com/italy2012>
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to