Uploaded image for project: 'Apache MetaModel (Retired)'
  1. Apache MetaModel (Retired)
  2. METAMODEL-1099

Externalize DataContext factory from properties from MetaModel-spring to MetaModel-full

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.5.3
    • 4.5.4, 5.0.0
    • None

    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.

      [1] https://github.com/apache/metamodel/pull/110

      Attachments

        Issue Links

          Activity

            People

              kaspersor Kasper Sørensen
              kaspersor Kasper Sørensen
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Slack

                  Issue deployment