My composite likes:
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://assembly-tests"
name="Assemby-component--Composite">
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.example.com/Customer"
targetNamespace="http://www.example.com/Customer">
<xsd:element name="customer" type="Customer"/>
<xsd:complexType name="Customer">
<xsd:sequence>
<xsd:element name="firstName" type="xsd:string"/>
<xsd:element name="middleName" type="xsd:string"/>
<xsd:element name="lastName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
<component name="CComponent">
<implementation.java
class="org.apache.tuscany.sca.vtest.assembly.component.property.ServiceCImpl"/>
<property name="customerInfo" xsi:type="Customer">
<firstName>Ku</firstName>
<middleName>Jun</middleName>
<lastName>Guo</lastName>
</property>
</component>
</composite>
So I have to define a Customer class if I want to use it in my
implementation as following:
...
@Property Customer customer;
...
is it a valid scenario for complextype property?