jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Angela Schreiber <anch...@adobe.com>
Subject Re: How to detect whether Oak is powering the repository?
Date Wed, 12 Mar 2014 12:55:16 GMT
hi carsten

i would use the repository descriptors, namely
javax.jcr.Repository#REP_NAME_DESC.
the value exposed by the oak repo is "Apache Jackrabbit Oak" and we should
probably expose that in a constant somewhere (e.g.
o.a.j.oak.api.Descriptors), so you
don't have to hard code it in your check.

kind regards
angela


On 12/03/14 13:47, "Carsten Ziegeler" <cziegeler@apache.org> wrote:

>Hi,
>
>what's the best reliable way to detect whether Oak is used as the
>implementation for the repository?
>
>Thanks
>Carsten
>-- 
>Carsten Ziegeler
>cziegeler@apache.org


Mime
View raw message