Description
While working on the RESTful web application / API for MetaModel [1] I encountered that I was starting to re-invent the work that has already been done in MetaModel-spring to convert a set of properties (in that case in the form of a Spring bean) into instructions for constructing a DataContext.
I think we need to have this functionality externalized for more general reuse. I was also just now looking into integrating Apache MetaModel with Apache Calcite and see that their APIs take a Map<String,Object> to create their equivalent of a DataContext. So once again I had the need to reuse this functionality. I can think of even more scenarios ...
So my suggestion with this issue is to make an class called DataContextPropertiesLoader (although I am open to better naming suggestions). It would be serializable and would hold the properties need to construct any datacontext. This class could then be leveraged by MetaModel-spring, by DataContextFactory and other projects.
Attachments
Issue Links
- relates to
-
CALCITE-1304 Add wrapper for Apache MetaModel adapters
- Open
- links to