56 lines
1.8 KiB
Java
56 lines
1.8 KiB
Java
package eu.eudat.logic.services.operations;
|
|
|
|
import eu.eudat.logic.builders.BuilderFactory;
|
|
import eu.eudat.service.remotefetcher.RemoteFetcherService;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.context.ApplicationContext;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
/**
|
|
* Created by ikalyvas on 3/1/2018.
|
|
*/
|
|
@Service("operationsContext")
|
|
public class OperationsContextImpl implements OperationsContext {
|
|
|
|
private final ApplicationContext applicationContext;
|
|
private final RemoteFetcherService remoteFetcherService;
|
|
private final BuilderFactory builderFactory;
|
|
// private final FileStorageService fileStorageService;
|
|
// private final ElasticRepository elasticRepository;
|
|
|
|
@Autowired
|
|
public OperationsContextImpl(ApplicationContext applicationContext, RemoteFetcherService remoteFetcherService
|
|
, BuilderFactory builderFactory/*FileStorageService fileStorageService, ElasticRepository elasticRepository*/) {
|
|
this.applicationContext = applicationContext;
|
|
this.remoteFetcherService = remoteFetcherService;
|
|
this.builderFactory = builderFactory;
|
|
// this.fileStorageService = fileStorageService;
|
|
// this.elasticRepository = elasticRepository;
|
|
}
|
|
|
|
@Override
|
|
public ApplicationContext getApplicationContext() {
|
|
return applicationContext;
|
|
}
|
|
|
|
@Override
|
|
public RemoteFetcherService getRemoteFetcher() {
|
|
return remoteFetcherService;
|
|
}
|
|
|
|
@Override
|
|
public BuilderFactory getBuilderFactory() {
|
|
return builderFactory;
|
|
}
|
|
|
|
// @Override
|
|
// public FileStorageService getFileStorageService() {
|
|
// return fileStorageService;
|
|
// }
|
|
|
|
// @Override
|
|
// public ElasticRepository getElasticRepository() {
|
|
// return elasticRepository;
|
|
// }
|
|
}
|