2018-06-27 12:29:21 +02:00
|
|
|
package eu.eudat.logic.services;
|
2018-01-04 10:32:39 +01:00
|
|
|
|
2018-06-27 12:29:21 +02:00
|
|
|
import eu.eudat.logic.services.helpers.HelpersService;
|
|
|
|
import eu.eudat.logic.services.operations.OperationsContext;
|
|
|
|
import eu.eudat.logic.services.utilities.UtilitiesService;
|
2018-07-11 15:47:36 +02:00
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
2018-01-04 10:32:39 +01:00
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
2018-02-01 10:08:06 +01:00
|
|
|
|
2018-01-04 10:32:39 +01:00
|
|
|
@Service("apiContext")
|
2018-02-16 11:34:02 +01:00
|
|
|
public class ApiContextImpl implements ApiContext {
|
2018-01-04 10:32:39 +01:00
|
|
|
|
2018-03-05 17:18:45 +01:00
|
|
|
private OperationsContext operationsContext;
|
|
|
|
private HelpersService helpersService;
|
|
|
|
private UtilitiesService utilitiesService;
|
2018-01-04 10:32:39 +01:00
|
|
|
|
2018-07-11 15:47:36 +02:00
|
|
|
@Autowired
|
2018-03-05 17:18:45 +01:00
|
|
|
public ApiContextImpl(OperationsContext operationsContext, HelpersService helpersService, UtilitiesService utilitiesService) {
|
|
|
|
this.operationsContext = operationsContext;
|
|
|
|
this.helpersService = helpersService;
|
|
|
|
this.utilitiesService = utilitiesService;
|
2018-01-04 10:32:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2018-03-05 17:18:45 +01:00
|
|
|
public OperationsContext getOperationsContext() {
|
|
|
|
return operationsContext;
|
2018-01-04 10:32:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2018-03-05 17:18:45 +01:00
|
|
|
public HelpersService getHelpersService() {
|
|
|
|
return helpersService;
|
2018-01-05 08:47:52 +01:00
|
|
|
}
|
2018-01-05 16:40:19 +01:00
|
|
|
|
|
|
|
@Override
|
2018-03-05 17:18:45 +01:00
|
|
|
public UtilitiesService getUtilitiesService() {
|
|
|
|
return utilitiesService;
|
2018-02-16 08:45:18 +01:00
|
|
|
}
|
2018-01-04 10:32:39 +01:00
|
|
|
}
|