Skip to content

Instantly share code, notes, and snippets.

@justinedelson
Created October 5, 2010 13:33
Show Gist options
  • Save justinedelson/611550 to your computer and use it in GitHub Desktop.
Save justinedelson/611550 to your computer and use it in GitHub Desktop.
@Component(immediate = true)
public class Configurer {
@Reference
private ConfigurationAdmin cfgAdmin;
protected void activate(ComponentContext ctx) throws Exception {
Configuration cfg = cfgAdmin.getConfiguration(
"org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl", null);
Dictionary props = new Hashtable();
props.put("resource.resolver.multiworkspace", "true");
cfg.update(props);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment