Search in sources :

Example 1 with ConfigurationResourceResolverImpl

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());
}
Also used : ContextPathStrategyMultiplexerImpl(org.apache.sling.caconfig.management.impl.ContextPathStrategyMultiplexerImpl) ConfigurationResourceResolverImpl(org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolverImpl)

Aggregations

ContextPathStrategyMultiplexerImpl (org.apache.sling.caconfig.management.impl.ContextPathStrategyMultiplexerImpl)1 ConfigurationResourceResolverImpl (org.apache.sling.caconfig.resource.impl.ConfigurationResourceResolverImpl)1