Yeah, once it becomes 'almost' readable XML it also gives me the creeps :-)

Kind regards,

        Peter Kriens

On 17 apr. 2013, at 14:56, Raymond Auge wrote:

> Thanks Neil! Works perfectly (the bnd syntax).
> 
> PS: I agree that the raw xml syntax seems a little odd.
> 
> Sincerely,
> - Ray
> 
> 
> On Tue, Apr 16, 2013 at 5:37 PM, Neil Bartlett <[email protected]> wrote:
> Understood. Using the direct XML (yuck), it looks like this:
> 
>     <property name="foo">
>         bar
>         baz
>     </property
> 
> Neil
> 
> 
> 
> On Tue, Apr 16, 2013 at 9:24 PM, Raymond Auge <[email protected]> 
> wrote:
> I guess I was asking generally to some degree since I was unclear whether the 
> underlying DS spec allowed for it.
> 
> 
> On Tue, Apr 16, 2013 at 4:23 PM, Raymond Auge <[email protected]> 
> wrote:
> Thank you Neil,
> 
> Sorry, I'm currently using the bnd annotations (1.50.0, haven't upgraded yet, 
> will soon).
> 
> - Ray
> 
> 
> On Tue, Apr 16, 2013 at 4:17 PM, Neil Bartlett <[email protected]> wrote:
> 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é  | Senior Software Architect | Liferay, Inc. 
> ---
> 
> 24-25 October 2012 | Liferay Spain Symposium | liferay.com/spain2012
> 16 November 2012 | Liferay Italy Symposium | 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
> 
> 
> 
> -- 
> Raymond Augé  | Senior Software Architect | Liferay, Inc. 
> ---
> 
> 24-25 October 2012 | Liferay Spain Symposium | liferay.com/spain2012
> 16 November 2012 | Liferay Italy Symposium | liferay.com/italy2012
> 
> 
> 
> 
> 
> 
> 
> -- 
> Raymond Augé  | Senior Software Architect | Liferay, Inc. 
> ---
> 
> 24-25 October 2012 | Liferay Spain Symposium | liferay.com/spain2012
> 16 November 2012 | Liferay Italy Symposium | 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
> 
> 
> 
> -- 
> Raymond Augé  | Senior Software Architect | Liferay, Inc. 
> ---
> 
> 24-25 October 2012 | Liferay Spain Symposium | liferay.com/spain2012
> 16 November 2012 | Liferay Italy Symposium | 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