use of org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolverImpl in project sling by apache.
the class ContextPlugins method registerConfigurationResourceResolver.
/**
* Register all services for ConfigurationResourceResolver (without the default implementations).
* @param context Sling context
*/
private static void registerConfigurationResourceResolver(SlingContextImpl context) {
context.registerInjectActivateService(new ContextPathStrategyMultiplexerImpl());
if (!registerByClassName(context, "org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolvingStrategyMultiplexerImpl")) {
// fallback to impl 1.2
registerByClassName(context, "org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolvingStrategyMultiplexer");
}
context.registerInjectActivateService(new ConfigurationResourceResolverImpl());
}
Aggregations