Created
October 5, 2010 13:33
-
-
Save justinedelson/611550 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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