I'm having some difficulty configuring a bean to use a static factory method with arguments when using the Batch namespace.
Here's my bean config:
When I'm attempting to run this, I receive a BeanCreationException, with the description "No matching factory method found: createOutputFile".Code:<beans:bean id="fileResource" class="com.foo.fileResourceFactory" factory-method="createOutputFile"> <beans:constructor-arg type="java.util.Date" value="#{jobParameters[END_DATE]}" /> <beans:constructor-arg value="target/output/" /> </beans:bean>
I quickly tried this by removing the parameters from the method signature and the bean definition and it worked fine, so the problem would seem to be in how I'm providing and/or declaring parameters in my configuration.
Anyone able to point me in the right direction?
Thanks.


Reply With Quote