Hi all, I've made a remote branch called 'spring-module' to represent the attempt at fixing issue METAMODEL-11 which is about having a spring FactoryBean available for constructing DataContext objects based on variable factory properties [1].
It so far works for JDBC, CSV and Excel DataContexts. Would appreciate any kind of review or thoughts on the approach. To get an idea of how it would work from a Spring POV, it will make sense to take a look at the testcases. These read files from the folder spring/src/test/resources/examples [2] ... Some questions: * Could we make this more extensible somehow, so it would be possible to plug in other datacontext types than those we have out of the box? Is that desirable/important? * Would the current style of implementation work if some dependencies are missing at runtime. For instance, would it work for a CSV DataContext when MetaModel-excel is not on the classpath, or does the imports in the top of the factory bean class require ALL modules to be available on classpath? If so, that's kinda unfortunate... Kind regards, Kasper [1] https://issues.apache.org/jira/browse/METAMODEL-11 [2] https://git-wip-us.apache.org/repos/asf?p=incubator-metamodel.git;a=tree;f=spring/src/test/resources/examples;h=130605d4286dd68c5b2e8acc3c2cdd2a8f0d5b6a;hb=refs/heads/spring-module
