Hi All,
In the code above, createInstance method of batchFilePathVarFactory is never called when I get "readBatchIdAction" instance. The "filePath" property is java.lang.String and it's initialized by "batchFilePath" contant :shock:.
But if I change "idref" to "ref" everything starts to work as planned.
Can somebody explain the difference, or may be it just a bug?
ThanksCode:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans> <bean id="batchFilePathVarFactory" class="com.VariableFactory"> </bean> <bean id="batchFilePath" factory-bean="batchFilePathVarFactory" factory-method="createInstance" singleton="false" /> <bean id="readBatchIdAction" class="com.ReadBatchId" singleton="false"> <property name="filePath"> <idref local="batchFilePath"/> </property> </bean> </beans>


Reply With Quote