I have a parent-app, which includes sub-apps. My Parent app has its own included list of hbms
<bean name="mappingResources"
class="my.xxx.MyListFactoryBean">
<property name="sourceList">
<list>
<value>aaa/bbb/aa.hbm.xml</value>
<value>aaa/bbb/bb.hbm.xml</value>
<value>aaa/bbb/cc.hbm.xml</value>
</list>
</property>
</bean>
My sub-apps want to add its own list of dependent hbms to the parent-app's. The way it should work is, if it includes this sub-app then it would include the new hbms as well and the child-app would initiate the include.
new hbms to be included could look like
xx/dd.hbm.xml xx/ee.hbm.xml
How can we do it?
Your Solution could be:
Split up the 'mappingResources' to
In the child-app refer to the bean "hbmSourceList" and invoke an "addAll" on it with an another list via the "MethodInvokingFactoryBean"