Re: architecture questions
Felix Meschberger <[email protected]> Wed, 27 Aug 2008 21:48:13 +0200
| Newsgroups | gmane.comp.apache.incubator.projects |
|---|---|
| Message-ID | <[email protected]> |
Hi, Roland Weber schrieb: > Hi Angie, > > happy hacking :-) > > As I understand it, you are currently working from > Luciano's Tuscany-based codebase, hence the ? arrow. > Unless you have way too much time on your hands, I > would stick with that architecture until the layout > of the repository is stabilized. > Regarding the ? box, I also don't see a layer there. > Sling is meant to access JCR directly, if I am not > mistaken. Of course one should have a few helper > interfaces or classes that define the repository > layout, but these are utilities and not an access > layer that separates the front-end from the repository. Yes, Sling accesses the repository directly and maps it into its own abstraction called the Resource tree. Each Resource retrieved from the Resource tree by means of the so-called ResourceResolver can be adapted to other objects. For example if a Resource is backed by a JCR node, you can adapt it to the Node interface and get the backing node. If you employ Jackrabbit Object Content Mapping (OCM) you may also adapt to the object classes mapped by the content. This gives you seemless access to the repository data as raw JCR items or as mapped business objects. Hope this helps. Regards Felix > > Maybe you want to put a small "access control" box > into the JCR box? > > cheers, > Roland > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >