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);
}
-- Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]