I would like to be able to reuse a component in a number of class definitions, for example:
Code:
<class name="foo">
<component name="name" class="PersonName">
<property name="firstname"/>
<property name="lastname"/>
</component>
</class>
<class name="bar">
<component name="name" class="PersonName">
<property name="firstname"/>
<property name="lastname"/>
</component>
</class>
As far as I can tell I have to specify all the properties I want to have appear on my class from the component, so that if I redefine the meaning of PersonName in one place I have to replicate the change in all places. I would have liked the ability to reference a component as well, so that I can simply define it once and reuse throughout. I know I can do this with a class for the component, I'd just rather not.