use of co.cask.cdap.internal.app.services.DefaultServiceConfigurer in project cdap by caskdata.
the class DefaultAppConfigurer method addService.
public void addService(Service service) {
Preconditions.checkArgument(service != null, "Service cannot be null.");
DefaultServiceConfigurer configurer = new DefaultServiceConfigurer(service, deployNamespace, artifactId, artifactRepository, pluginInstantiator);
service.configure(configurer);
ServiceSpecification spec = configurer.createSpecification();
addDatasetsAndPlugins(configurer);
services.put(spec.getName(), spec);
}
Aggregations