You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by BrucePercy <br...@googlemail.com> on 2008/01/25 12:22:29 UTC
Writing an SPI Implementation
Hi,
Does anybody have any information or experience on writing your own SPI
implementation?
I've looked at the sandbox examples, but it's not clear how to plug in your
own implementation.
Any information would be very welcome.
Thanks,
Bruce.
--
View this message in context: http://www.nabble.com/Writing-an-SPI-Implementation-tp15085880p15085880.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: Writing an SPI Implementation
Posted by Marcel Reutegger <ma...@gmx.net>.
BrucePercy wrote:
> Does anybody have any information or experience on writing your own SPI
> implementation?
>
> I've looked at the sandbox examples, but it's not clear how to plug in your
> own implementation.
the best example is probably jackrabbit-spi2jcr. it is complete and straight
forward because it obviously maps well ;)
for bootstrap code see:
http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/JCR2SPI2JCRRepositoryStub.java
regards
marcel
Re: Writing an SPI Implementation
Posted by Julian Reschke <ju...@gmx.de>.
BrucePercy wrote:
> Hi,
>
> Does anybody have any information or experience on writing your own SPI
> implementation?
Yes.
> I've looked at the sandbox examples, but it's not clear how to plug in your
> own implementation.
>
> Any information would be very welcome.
IMHO the starting point is to have an implementation of RepositoryConfig
(with all its dependencies :-), and to use that to get JCR2SPI up and
running. As in:
public static Repository newRepository(String p_name) throws
RepositoryException {
return
org.apache.jackrabbit.jcr2spi.RepositoryImpl.create(RepositoryConfigImpl.getInstance(p_name));
}
If this doesn't help, please try to ask a more specific question :-)
BR, Julian