
Originally Posted by
aks
I'm looking for a convenient, clean and resuable means of loading an application context for standard java command-line applications. I've been writing a number of batch type applications lately and I load the context with the ClasspathXmlApplicationContext in the main method.
Before I write something myself, I wanted to know if Spring provides, or someone has written something elegant that is analogous to the AbstractDependencyInjectionSpringContextTests for junit tests, where the user just implements the getConfigLocations() method.
Thanks
Alan