Search in sources :

Example 1 with DefaultServiceConfigurer

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);
}
Also used : ServiceSpecification(co.cask.cdap.api.service.ServiceSpecification) DefaultServiceConfigurer(co.cask.cdap.internal.app.services.DefaultServiceConfigurer)

Aggregations

ServiceSpecification (co.cask.cdap.api.service.ServiceSpecification)1 DefaultServiceConfigurer (co.cask.cdap.internal.app.services.DefaultServiceConfigurer)1