Hello, im developing an XML extension. Without extension my Spring configuration is:
Code:
<bean id="dg.architecture.validator.Service" class="com.dg.architecture.service.validator.impl.ValidatorService">
<property name="configuration">
<bean class="com.dg.architecture.service.validator.impl.ValidatorConfiguration"/>
</property>
</bean>
Now i want something like:
Code:
<dg:service name="dg.architecture.validator.Service" implementation="com.dg.architecture.service.validator.impl.ValidatorService" configuration="com.dg.architecture.service.validator.impl.ValidatorConfiguration" description=""/>
I have developed but when i try to create the configuration bean property, i just don't know how to do because if i use the addPropertyReference() method with BeanDefinitionBuilder, passing the result of executing rootBeanDefinition method, an exception is thrown telling me that bean has no id.
When i look the API i see a childBeanDefinition rather than rootBeanDefinition, but no class attribute is present. So how can i create using a NamespaceHandler for creating this embbedded bean (configuration) ?
Thank you very much