Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2042

RepositoryFactory implementation for jcr2spi

    XMLWordPrintableJSON

Details

    Description

      There should be a RepositoryFactory implementation in jcr2spi that also covers acquiring the underlying RepositoryService.

      For this purpose I suggest to create:

      • a RepositoryServiceFactory in jackrabbit-spi, which encapsulates the spi implementation specifc instantiation of the RepositoryService. the factory probably just needs a single method that takes a parameters map.
      • a RepositoryFactory implementation in jcr2spi, which works with a URI that contains all required information to connect/acquired the RepositoryService.

      To use jcr2spi/spi2jcr/jackrabbit-core:

      To use jcr2spi/spi2dav:

      • jcr+dav://localhost:8080/server/repository/?br=4

      To use jcr2spi/spi2davex:

      • jcr+davex://localhost:8080/server/repository/

      An implementation of RepositoryServiceFactory must check the scheme and decide if it can handle it and create a RepositoryService instance with it, otherwise it must return null. This means there would be a single name for the connect URI for all RepositoryServiceFactory implementations.

      Attachments

        1. JCR-2042-poc.patch
          27 kB
          Michael Dürig

        Issue Links

          Activity

            People

              mduerig Michael Dürig
              mreutegg Marcel Reutegger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: