Hello,
I was wondering if there are plans for ColdSpring to support the parent and
abstract attributes on the bean tag as they are used in Spring. My use case
is that many of my DAO's and Gateways take the same constructor args since
they extend a common component. Thus it would be nice to do:
<bean id="abstractDAO" class="path.to.abstractDAO" abstract="true" >
<constructor-arg name="DSN" ><value>myDSN</value></constructor-arg>
</bean>
<bean id="concreteDAO1" class="path.to.concreteDAO1" parent="abstractDAO" />
<bean id="concreteDAO2" class="path.to.concreteDAO2" parent="abstractDAO" >
<property name="someAdditionalProperty" >foo</property>
</bean>
I saw this demonstrated in Spring in
http://www-128.ibm.com/developerworks/java/library/j-genericdao.html. I
might be misunderstanding how the Spring code works or maybe there is a way
to do this already in ColdSpring?
Thanks,
Jon