You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Fabio Albani <qu...@gmail.com> on 2010/11/16 14:33:23 UTC

Getting a reference to current composite or properties

Hi to all,

I've a big problem in reading the values for the Property given their name.
How can I do this? I've tried using some processor but without success.

If i have a property of a given component with a name, basically how can I
read the current composite properties fields?

Thank you.

Fabio

Re: Getting a reference to current composite or properties

Posted by Raymond Feng <cy...@gmail.com>.
Do you try to do this inside the component where the property is defined? If so, org.oasisopen.sca.ComponentContext will allow you to get properties in addition to the dependency injection. Otherwise, we'll have open up the Node SPI.

Thanks,
Raymond
________________________________________________________________ 
Raymond Feng
rfeng@apache.org
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________

On Nov 16, 2010, at 5:33 AM, Fabio Albani wrote:

> Hi to all,
> 
> I've a big problem in reading the values for the Property given their name.
> How can I do this? I've tried using some processor but without success.
> 
> If i have a property of a given component with a name, basically how can I read the current composite properties fields?
> 
> Thank you.
> 
> Fabio