use of com.thinkbiganalytics.spark.service.SparkUtilityService in project kylo by Teradata.
the class KyloShellConfig method jerseyConfig.
/**
* Gets the resource configuration for setting up Jersey.
*
* @return the Jersey configuration
*/
@Bean
public ResourceConfig jerseyConfig(final TransformService transformService, final FileSystem fileSystem, final SparkLocatorService sparkLocatorService, final SparkUtilityService sparkUtilityService) {
Validate.notNull(fileSystem);
Validate.notNull(transformService);
Validate.notNull(sparkLocatorService);
Validate.notNull(sparkUtilityService);
final ResourceConfig config = new ResourceConfig(ApiListingResource.class, SwaggerSerializers.class);
config.packages("com.thinkbiganalytics.spark.rest");
config.register(new AbstractBinder() {
@Override
protected void configure() {
bind(fileSystem).to(FileSystem.class);
bind(transformService).to(TransformService.class);
bind(sparkLocatorService).to(SparkLocatorService.class);
bind(sparkUtilityService).to(SparkUtilityService.class);
}
});
return config;
}
Aggregations