Hi, Venkat.

I think we should reorganize the code to match what we envisioned before. Here's the basic idea:

1) The property values are loaded as DOM objects by the runtime during the loading phase 2) The component implementations express their requirements for the property values using DataType. For java component, this can be achieved by annotating the property with @DataType. This becomes extensions to the componentType. 3) The property injector will transform the property value from DOM to the target data type (for example, SDO, JAXB, JavaBeans, etc).

For the properties are modeled as JavaBeans, we can do the following:

1) Contribute a Transformer which can convert data from DOM Node to JavaBeans using the algorithm you wrote. 2) By default, the java properties uses JavaDataBinding which supports simple types and JavaBeans. 3) Update the PropertyInjector (if needed) to use Meditor to transform the data before injection.

Thanks,
Raymond

----- Original Message ----- From: "Venkatakrishnan (JIRA)" <tuscany-dev@ws.apache.org>
To: <tuscany-dev@ws.apache.org>
Sent: Thursday, January 25, 2007 11:25 AM
Subject: [jira] Commented: (TUSCANY-925) Complex properties not supported



[ https://issues.apache.org/jira/browse/TUSCANY-925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12467506 ]

Venkatakrishnan commented on TUSCANY-925:
-----------------------------------------

HI,

A first cut support of Complex Properties has been committed - r499915. I have also extended the itest for PropertyTesting.

This implementation uses the basic JavaBeans naming conventions to map properties defined as xml data to java object data. I'd like to extend this mapping further to leverage the support from various databindings after some discussions with the community.

I also intend to run thro the more current version of the specs. and sync up this implementation as futher steps.

Please let me know your feedback on this implementation.

Thanks

- Venkat

Complex properties not supported
--------------------------------

                Key: TUSCANY-925
                URL: https://issues.apache.org/jira/browse/TUSCANY-925
            Project: Tuscany
         Issue Type: Bug
         Components: Java SCA Core
           Reporter: Brent Daniel
        Assigned To: Venkatakrishnan
            Fix For: Java-SCA-M3


This may be intented to be covered in TUSCANY-773, but it was not clear to me. Complex properties are currently not supported by the tuscany runtime. Caused by: java.lang.IllegalArgumentException: Complex property is not supported. at org.apache.tuscany.core.property.SimplePropertyObjectFactory.getInstance(SimplePropertyObjectFactory.java:56)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to