Project

General

Profile

« Previous | Next » 

Revision 42621

Chnaged Resource to Autowired

View differences:

RegistryController.java
1 1
package eu.dnetlib.enabling.inspector;
2 2

  
3 3
import java.io.IOException;
4

  
5
import javax.annotation.Resource;
6 4
import javax.xml.parsers.ParserConfigurationException;
7 5
import javax.xml.xpath.XPathExpressionException;
8 6

  
9
import org.springframework.stereotype.Controller;
10
import org.springframework.web.bind.annotation.RequestMapping;
11
import org.springframework.web.bind.annotation.RequestMethod;
12
import org.springframework.web.bind.annotation.RequestParam;
13
import org.xml.sax.SAXException;
14

  
15 7
import eu.dnetlib.enabling.locators.UniqueServiceLocator;
16 8
import eu.dnetlib.enabling.tools.CompatResourceIdentifierResolverImpl;
17 9
import eu.dnetlib.enabling.tools.OpaqueResource;
......
19 11
import eu.dnetlib.enabling.tools.StringOpaqueResource;
20 12
import eu.dnetlib.rmi.enabling.ISRegistryException;
21 13
import eu.dnetlib.rmi.enabling.ISRegistryService;
14
import org.springframework.beans.factory.annotation.Autowired;
15
import org.springframework.stereotype.Controller;
16
import org.springframework.web.bind.annotation.RequestMapping;
17
import org.springframework.web.bind.annotation.RequestMethod;
18
import org.springframework.web.bind.annotation.RequestParam;
19
import org.xml.sax.SAXException;
22 20

  
23 21
/**
24 22
 * This inspector allows the admin to quickly register a profile, like a repository profile.
......
29 27
@Controller
30 28
public class RegistryController extends AbstractInspectorController {
31 29

  
32
	@Resource
30
	@Autowired
33 31
	private UniqueServiceLocator serviceLocator;
34 32

  
35 33
	/**
36 34
	 * manages resource identifier mappings with the abstract xmldb namespace (files/collections).
37 35
	 */
38
	@Resource
36
	@Autowired
39 37
	private ResourceIdentifierResolver resIdResolver = new CompatResourceIdentifierResolverImpl();
40 38

  
41 39
	@RequestMapping(value = "/inspector/registerProfile.do", method = RequestMethod.GET)

Also available in: Unified diff