use of org.apache.sling.caconfig.management.impl.ConfigurationManagementSettingsImpl in project sling by apache.
the class ConfigurationMetadataProviderMultiplexerImplTest method setUp.
@Before
public void setUp() {
context.registerInjectActivateService(new ConfigurationManagementSettingsImpl());
context.registerInjectActivateService(new ConfigurationPersistenceStrategyMultiplexerImpl());
context.registerInjectActivateService(new DefaultConfigurationPersistenceStrategy());
underTest = context.registerInjectActivateService(new ConfigurationMetadataProviderMultiplexerImpl());
}
use of org.apache.sling.caconfig.management.impl.ConfigurationManagementSettingsImpl in project sling by apache.
the class ConfigurationTestUtils method registerConfigurationResolver.
/**
* Register all services for {@link ConfigurationResolver}.
* @param context Sling context
*/
public static ConfigurationResolver registerConfigurationResolver(SlingContext context, Object... properties) {
ConfigurationResourceTestUtils.registerConfigurationResourceResolver(context);
context.registerInjectActivateService(new ConfigurationManagementSettingsImpl());
context.registerInjectActivateService(new DefaultConfigurationPersistenceStrategy());
context.registerInjectActivateService(new ConfigurationPersistenceStrategyMultiplexerImpl());
context.registerInjectActivateService(new DefaultConfigurationInheritanceStrategy());
context.registerInjectActivateService(new ConfigurationInheritanceStrategyMultiplexerImpl());
context.registerInjectActivateService(new ConfigurationOverrideMultiplexerImpl());
context.registerInjectActivateService(new ConfigurationMetadataProviderMultiplexerImpl());
return context.registerInjectActivateService(new ConfigurationResolverImpl(), properties);
}
use of org.apache.sling.caconfig.management.impl.ConfigurationManagementSettingsImpl in project sling by apache.
the class ConfigurationTestUtils method registerConfigurationResolverWithoutDefaultImpl.
/**
* Register all services for {@link ConfigurationResolver}
* without the default implementations of the multiplexed services.
* @param context Sling context
*/
public static ConfigurationResolver registerConfigurationResolverWithoutDefaultImpl(SlingContext context, Object... properties) {
ConfigurationResourceTestUtils.registerConfigurationResourceResolverWithoutDefaultImpl(context);
context.registerInjectActivateService(new ConfigurationManagementSettingsImpl());
context.registerInjectActivateService(new ConfigurationPersistenceStrategyMultiplexerImpl());
context.registerInjectActivateService(new ConfigurationInheritanceStrategyMultiplexerImpl());
context.registerInjectActivateService(new ConfigurationOverrideMultiplexerImpl());
context.registerInjectActivateService(new ConfigurationMetadataProviderMultiplexerImpl());
return context.registerInjectActivateService(new ConfigurationResolverImpl(), properties);
}
Aggregations