[ http://issues.apache.org/jira/browse/TUSCANY-773?page=comments#action_12439737 ] Raymond Feng commented on TUSCANY-773: --------------------------------------
Hi, Venkat. I made changes based on your latest patch. 1) The component loader will create a map of PropertyValue(s) for each Property in the componentType. 2) We load the value of the PropertyValue as a DOM Document. The value can be the content of the element, from the source XPath or file URI. 3) A PropertyValue will be created for a property that is not overrided by the component. The value is the default. 4) We attach a ValueFactory to each PropertyValue. The factory should be able to create the desired instance for a property value (basically it transforms the DOM into the target databinding.) I have added a SimplePropertyFactory which knows how to create java simple types. The PropertyFactory will use the databnding framework to do complexType conversions. 5) The component builder will provide the property databinding information for the component impl and then it can get the value factory for each PropertyValue to create the instances and use its own way to pass to the component impl. I'll commit the changes as the base. Thanks, Raymond > Fix Property Value Loading from Component Definitions > ----------------------------------------------------- > > Key: TUSCANY-773 > URL: http://issues.apache.org/jira/browse/TUSCANY-773 > Project: Tuscany > Issue Type: Bug > Components: Java SCA Core > Affects Versions: Java-M2 > Reporter: Venkatakrishnan > Assigned To: Raymond Feng > Attachments: rfeng.patch, Tuscany-kernel-core-02-Oct.diff, > Tuscany-kernel-spi-02-Oct.diff, Tuscany-sca-kernel-core-03-Oct.diff, > Tuscany-sca-kernel-spi-03-Oct.diff, Tuscany-spec-sca-02-Oct.diff, > Tuscany-spec-sca-03-Oct.diff > > > Currently property loading for application components does not work. There > is NPE exception thrown when creating a property instance factory based on > the property value defined in the Component Defn. > Also the property loading works only for simply types whose values can be > represented as a simple xml text content. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
