Project

General

Profile

« Previous | Next » 

Revision 42621

Chnaged Resource to Autowired

View differences:

AddRepoApiEntryPointController.java
3 3
import java.util.ArrayList;
4 4
import java.util.List;
5 5
import java.util.Map;
6

  
7
import javax.annotation.Resource;
8 6
import javax.servlet.http.HttpServletRequest;
9 7
import javax.servlet.http.HttpServletResponse;
10 8

  
11
import org.springframework.beans.factory.annotation.Required;
12
import org.springframework.ui.ModelMap;
13

  
14 9
import com.google.common.base.Function;
15 10
import com.google.common.collect.Lists;
16 11
import com.google.common.collect.Maps;
17 12
import com.google.gson.Gson;
18

  
19 13
import eu.dnetlib.enabling.locators.UniqueServiceLocator;
20 14
import eu.dnetlib.functionality.modular.ui.ModuleEntryPoint;
21 15
import eu.dnetlib.functionality.modular.ui.repositories.objects.VocabularyEntry;
......
24 18
import eu.dnetlib.rmi.data.ProtocolDescriptor;
25 19
import eu.dnetlib.rmi.data.ProtocolParameter;
26 20
import eu.dnetlib.rmi.enabling.ISLookUpException;
21
import org.springframework.beans.factory.annotation.Autowired;
22
import org.springframework.beans.factory.annotation.Required;
23
import org.springframework.ui.ModelMap;
27 24

  
28 25
public class AddRepoApiEntryPointController extends ModuleEntryPoint {
29 26

  
......
32 29
	private String contentDescriptionsVocabulary;
33 30
	private String protocolsVocabulary;
34 31

  
35
	@Resource
32
	@Autowired
36 33
	private UniqueServiceLocator serviceLocator;
37 34

  
38
	@Resource
35
	@Autowired
39 36
	private RepoUIUtils repoUIUtils;
40 37

  
41 38
	@Override

Also available in: Unified diff