*/
@Override
public void cacheStarting(ComponentRegistry cr, Configuration cfg, String cacheName) {
if (cfg.indexing().index().isEnabled()) {
log.registeringQueryInterceptor();
SearchFactoryIntegrator searchFactory = getSearchFactory(cfg.indexing().properties(), cr);
createQueryInterceptorIfNeeded(cr, cfg, searchFactory);
EmbeddedCacheManager cacheManager = cr.getGlobalComponentRegistry().getComponent(EmbeddedCacheManager.class);
addCacheDependencyIfNeeded(cacheName, cacheManager, cfg.indexing().properties());
}
}