package eu.eudat.services.operations; import eu.eudat.builders.BuilderFactory; import eu.eudat.proxy.fetching.RemoteFetcher; 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 DatabaseRepository databaseRepository; private ApplicationContext applicationContext; private RemoteFetcher remoteFetcher; private BuilderFactory builderFactory; @Autowired public OperationsContextImpl(DatabaseRepository databaseRepository, ApplicationContext applicationContext, RemoteFetcher remoteFetcher, BuilderFactory builderFactory) { this.databaseRepository = databaseRepository; this.applicationContext = applicationContext; this.remoteFetcher = remoteFetcher; this.builderFactory = builderFactory; } @Override public DatabaseRepository getDatabaseRepository() { return databaseRepository; } @Override public ApplicationContext getApplicationContext() { return applicationContext; } @Override public RemoteFetcher getRemoteFetcher() { return remoteFetcher; } @Override public BuilderFactory getBuilderFactory() { return builderFactory; } }