Thanks Dave,
Actually Datasource is just one example. There will be other type of objects I want to handle through this feature.
I am trying this with Spring Batch 2.0 and Spring 2.5 as these are stable release.
Other option i am trying with the help of org.springframework.beans.factory.config.MethodInv okingFactoryBean to get through a wrapper class.
HTML Code:
<beans:bean id="resources"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<beans:property name="targetObject" ref="resourceManagerWrapper" />
<beans:property name="targetMethod" value="getResource" />
<beans:property name="arguments">
<beans:list>
<beans:value>${batchConfig.resources.sourceDatabase}</beans:value>
</beans:list>
</beans:property>
</beans:bean>
But need some help that how can i call this method in the xml to get the data source?