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

JcrRepositoryFactory.getRepository(params); - support repository name in params

XMLWordPrintable

      This would be more convenient, than appending query parameter to the URL :

      	JcrRepositoryFactory repositoryFactory = new JcrRepositoryFactory();
      	Map<String, String> params = new HashMap<String, String>();
      	params.put(JcrRepositoryFactory.URL, "file://" + CONFIG_FILE_PATH);
      	params.put(JcrRepositoryFactory.REPOSITORY_NAME_PARAM, "inMemoryRepo");
      	repository = (JcrRepository) repositoryFactory.getRepository(params);
      

      Patch attached as a reference.

        1. mode-1252-fix.patch
          1 kB
        2. patch
          1 kB

              rhauch Randall Hauch (Inactive)
              lisak_jira Jakub Liska (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: