Gerd Schrick schrieb: > > Dear Lenya Team, > > some months ago I asked for the state of the JCR-module (to use Lenya > with JackRabbit)... > and since some weeks I'm working myself on the implementation of such a > module. > After the first frustrating steps "in the dark" the work becomes > more-and-more successful... > > ATM I'm stuck a bit on two things: > 1) how can I find out what Lenya really expects from such a module (what > objects/classes/methods)?
http://lenya.apache.org/docs/2_0_x/reference/modules/index.html A module is not required to contain any classes. >- until now, I looked up the > sourcerepository-module (and the old/outdated JCR module) tried to find > out what's going on there and then created my own module with similar > classes... > I'm not sure if this is a really good approach, so I hope to get some > help/hints on how to proceed best. IMO the only reasonable approach would be to integrate JCR at a higher level (i.e. implementing the o.a.lenya.cms.publication.* interfaces), which would probably require to change the API. The repository module (now in the sandbox) was a draft how this could be accomplished. > 2) the classes I looked up in the sourcerepository module are all > subclasses of "AbstractLogEnabled". > For many classes/objects I found in sourcerepository I found a > equivalent in javax.jcr. Currently I just use these objects (mostly > instances of javax.jcr...) as members in classes extending > AbstractLogEnabled and implementing the required interfaces. > But is there also an option to create them as subclasses from the > classes in the javax.jcr-package instead? (with additional interfaces) I wouldn't recommend this (delegation should usually be preferred to inheritance, especially in this case where you would extend classes from an external library). -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
