props.put(key, node.asString());
}
}
ensureClassLoadingPropertyIsSet(props);
IndexProviderService providerService = new IndexProviderService(repositoryName, props);
ServiceBuilder<JcrRepository> providerBuilder = target.addService(ModeShapeServiceNames.indexProviderServiceName(repositoryName,
providerName),
providerService);
providerBuilder.addDependency(ModeShapeServiceNames.ENGINE,
ModeShapeEngine.class,
providerService.getModeShapeEngineInjector());
providerBuilder.addDependency(ModeShapeServiceNames.repositoryServiceName(repositoryName),
JcrRepository.class,
providerService.getJcrRepositoryInjector());
providerBuilder.setInitialMode(ServiceController.Mode.ACTIVE);
ServiceController<JcrRepository> controller = providerBuilder.install();
newControllers.add(controller);
}