48 lines
1.2 KiB
Java
48 lines
1.2 KiB
Java
|
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;
|
||
|
}
|
||
|
}
|