[Hippo-cms7-user BETA] Question about org.hippoecm.repository.HippoRepository

Jettro Coenradie jettro at jteam.nl
Mon Jul 21 08:40:20 CEST 2008


Hi readers,
I have a small question. Can someone clarify why the choice was made  
to create org.hippoecm.repository.HippoRepository and not let it  
extend the jcr repository interface : javax.jcr.Repository.

It seems strange to me, especially if you look at the following lines  
of code:

HippoRepository repository =  
HippoRepositoryFactory.getHippoRepository("rmi://localhost:1099/ 
hipporepository");
Session session = repository.login(new SimpleCredentials("editor",  
"editor".toCharArray()));
Repository standardRepo = session.getRepository();
String[] keys = standardRepo.getDescriptorKeys();
for (String key : keys) {
     System.out.println("repo property key : " + key + ", value : " +  
standardRepo.getDescriptor(key));
}

It seems to me Hippo wraps the jackrabbit repository, especially when  
looking at the following output and taken that you do get back the jcr  
version of Session

repo property key : jcr.repository.name, value : Jackrabbit
repo property key : jcr.repository.stats.nodes.count, value : 1324
repo property key : jcr.repository.stats.properties.count, value : 7118
repo property key : jcr.repository.vendor, value : Apache Software  
Foundation
repo property key : jcr.repository.vendor.url, value : http://jackrabbit.apache.org/
repo property key : jcr.repository.version, value : 1.4
repo property key : jcr.specification.name, value : Content Repository  
API for Java(TM) Technology Specification
repo property key : jcr.specification.version, value : 1.0
repo property key : level.1.supported, value : true
repo property key : level.2.supported, value : true
repo property key : option.locking.supported, value : true
repo property key : option.observation.supported, value : true
repo property key : option.query.sql.supported, value : true
repo property key : option.transactions.supported, value : true
repo property key : option.versioning.supported, value : true
repo property key : query.xpath.doc.order, value : true
repo property key : query.xpath.pos.index, value : true

Hope someone can explain why this choice was made.

groeten Jettro

Jettro Coenradie - jettro at jteam.nl - http://www.jteam.nl - linkedin
Phone: +31(0)20 486 20 36 Fax: +31(0)20 475 08 28 Mobile: +31(0)6 3473  
9912
Frederiksplein 1 - 1017 XK - Amsterdam - The Netherlands

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.onehippo.org/pipermail/hippo-cms7-user/attachments/20080721/5d80528d/attachment.htm>


More information about the Hippo-cms7-user mailing list