Project

General

Profile

« Previous | Next » 

Revision 42621

Chnaged Resource to Autowired

View differences:

IdPreservingPendingResourceManagerImpl.java
1 1
package eu.dnetlib.enabling.is.registry;
2 2

  
3 3
import java.util.Date;
4
import javax.annotation.Resource;
5 4
import javax.xml.xpath.XPathExpressionException;
6 5

  
7 6
import eu.dnetlib.enabling.is.registry.schema.OpaqueResourceValidator;
......
13 12
import eu.dnetlib.enabling.tools.*;
14 13
import eu.dnetlib.rmi.enabling.ISRegistryException;
15 14
import eu.dnetlib.rmi.enabling.ISRegistryService;
16

  
15
import org.springframework.beans.factory.annotation.Autowired;
17 16
import org.springframework.beans.factory.annotation.Required;
18
import org.xmldb.api.base.XMLDBException;
19 17

  
20 18
public class IdPreservingPendingResourceManagerImpl implements PendingResourceManager, ResourceKindResolver {
21 19

  
......
47 45
	/**
48 46
	 * manages resource identifier mappings with the abstract xmldb namespace (files/collections).
49 47
	 */
50
	@Resource
48
	@Autowired
51 49
	private ResourceIdentifierResolver resIdResolver = new CompatResourceIdentifierResolverImpl();
52 50

  
53 51
	/**
54 52
	 * used to create a new resource id.
55 53
	 */
56
	@Resource
54
	@Autowired
57 55
	private ResourceIdentifierComposer resIdComposer = new CompatResourceIdentifierResolverImpl();
58 56

  
59 57
	/**
60 58
	 * used to validate resources w.r.t. a set of defined properties.
61 59
	 */
62
	@Resource
60
	@Autowired
63 61
	private ProfileValidationStrategy profileValidationStrategy;
64 62

  
65 63
	/**

Also available in: Unified diff