jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@adobe.com>
Subject Re: I set a TransientRepository, I get a RepositoryImpl ?
Date Mon, 06 Jun 2011 12:56:25 GMT
On 06.06.11 12:15, "Hervé Agnoux" <herve.agnoux@diaam-informatique.com>
>I init a repository with the implementation I choose, so the jcr MUST get
>the implementation I choose, not other assumption.

Why do you think it MUST? The API defines the Repository interface,
nothing more.

Any casting to implementations is always depending on the implementation,
otherwise what's the sense of interfaces in Java?

>>TransientRepository case, it's actually a different object than the
>> TransientRepository you start at the beginning, because of some good
>> reason. Since creating/starting the repository (in this case calling
>> Jackrabbit's "new TransientRepository") is not defined by the JCR
>> spec/API, this is ok.
>What is ok ? What are these good reasons ? If JCR doesn't define, why
>use the define I choose ?

What is your use case anyway? I don't see the problem at all. Just keep
the TransientRepository instance, if you need the implementation-specific


Alexander Klimetschek
Developer // Adobe (Day) // Berlin - Basel

View raw message