spring-projects/spring-batch — pull request #310 by dickerpulli (2014-04-24 13:15:25+00:00)
Title: New Feature: Allow multiple configs (xmls, java-files, packages) to be loaded in ApplicationContextFactory

With the loaded in ApplicationContextFactory it is not possible to load multiple resources into one Job context. At the moment you can only give one Resource (i.e. XML file) to the GenericApplicationContextFactory to load beans from it. With this, it is not possible to use a separate XML file for abstract behaviour (abstract steps and jobs) without importing it explicitly into the job XML.

I extended the AbstractApplicationContextFactory and GenericApplicationContextFactory, so that an array of resources is allowed to use in one Factory.

With the use of Var-Args the new implementation is backward compatible with the old one.

What do you think about it?