jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcel Reutegger (JIRA)" <j...@apache.org>
Subject [jira] Created: (JCR-2042) RepositoryFactory implementation for jcr2spi
Date Wed, 25 Mar 2009 13:40:52 GMT
RepositoryFactory implementation for jcr2spi
--------------------------------------------

                 Key: JCR-2042
                 URL: https://issues.apache.org/jira/browse/JCR-2042
             Project: Jackrabbit Content Repository
          Issue Type: New Feature
          Components: jackrabbit-jcr2spi, jackrabbit-spi
            Reporter: Marcel Reutegger
            Priority: Minor


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:
- jcr+file://path/to/repository/home?config=repository.xml

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.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message