Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-1906

Add ability to load CND files specified in json config from file-system on startup

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 3.2.0.Final
    • 3.1.3.Final
    • Configuration
    • None

    Description

      When modeshape is being started from json config file it can load some resources from both file on file-system and resource in classpath (eg. cache config for infinispan).

      It is not applicable to "Node-Types" property which handles only classpath resources and blocks us from storing all the configs on file-system.

      It can be seen in class NodeTypesImporter:

      InputStream cndFileStream = runningState.environment()
      .getClassLoader(NodeTypesImporter.class.getClassLoader())                                                   
      .getResourceAsStream(cndFile);
      

      which might use modeshape's IoUtil to apply common logic:

      ClassLoader classLoader = runningState.environment()
      .getClassLoader(NodeTypesImporter.class.getClassLoader());
      
      InputStream cndFileStream = IoUtil.getResourceAsStream(cndFile, classLoader, null);
      

      Attachments

        Activity

          People

            hchiorean Horia Chiorean (Inactive)
            dr_nickson_jira Nick K (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: