jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: [jira] Commented: (JCR-1428) Add API for selective bundle consistency check (Jackrabbit-specific)
Date Fri, 29 Feb 2008 12:44:03 GMT
Am 29.02.2008 um 13:11 schrieb Stefan Guggisberg:
> huh? o.a.j.c.WorkspaceImpl implements the javax.jcr.Workspace
> interface. seems pretty obvious to me ;)
> what's confusing you WRT the naming?

Well, it's probably due to the API. The concept of a workspace is  
represented by WorkspaceInfo, the interface Workspace and  
WorkspaceImpl only represent a per-session view on the workspace. Same  
goes with TransientRepository vs. RepositoryImpl, where you have this  

Repository rep = new TransientRepository(config, home);
Session session = rep.login();
assertEquals(rep, session.getRepository()); // fails

 >> junit.framework.AssertionFailedError:  
expected:<org.apache.jackrabbit.core.TransientRepository@129a7d> but  

And all those ItemState stuff (no conceptual problems, but one doesn't  
know what is used and what not)... Just confusing for the beginner. I  
expected the main implementation details to be about the hierarchy  
handling, but instead it is about the transient (session) part working  
together with the persistence backend.

Ok, enough rant, you did a great job with such a completely new  
database model!


Alexander Klimetschek

View raw message