Andreas Hartmann wrote:

Michael Wechner wrote:

Hi

I would like to make the Repo (e.g. JCR or the filesystem) configurable
within local.build.properties, because it seems to me that right now
people are quite confused how to get started with JCR.

WDYT?


Makes sense.

Instead of changing the default class in lenya.roles, I'd rather use a
service selector to obtain the node factory.

This way it might even be possible to use either JCR or the FS for different
publications by adding the config to publication.xconf:

  <repository type="jcr"/>


RepositorySource.java:

    selector = (...) this.manager.lookup(NodeFactory.ROLE + "Selector");

    if (isPublication(path)) {

        Publication pub = getPublication(path);
        String hint = pub.getNodeFactoryHint();
        factory = (...) selector.select(hint);
    }
    else {
        factory = (...) selector.select(NodeFactory.DEFAULT_FACTORY);
    }


ok, sounds good to me. I will try to change this.

Thanks

Michi



-- Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
[EMAIL PROTECTED]                        [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to