argos/dmp-backend/src/main/java/eu/eudat/services/ApiContextImpl.java

48 lines
1.2 KiB
Java
Raw Normal View History

2018-01-04 10:32:39 +01:00
package eu.eudat.services;
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 1/3/2018.
*/
@Service("apiContext")
public class ApiContextImpl implements ApiContext{
private DatabaseRepository databaseRepository;
private ApplicationContext applicationContext;
private RemoteFetcher remoteFetcher;
@Autowired
public void setDatabaseRepository(DatabaseRepository databaseRepository) {
this.databaseRepository = databaseRepository;
}
@Override
public DatabaseRepository getDatabaseRepository() {
return databaseRepository;
}
@Override
public ApplicationContext getApplicationContext() {
return applicationContext;
}
@Autowired
public void setApplicationContext(ApplicationContext applicationContext) {
this.applicationContext = applicationContext;
}
@Override
public RemoteFetcher getRemoteFetcher() {
return remoteFetcher;
}
@Autowired
public void setRemoteFetcher(RemoteFetcher remoteFetcher) {
this.remoteFetcher = remoteFetcher;
}
}