Project

General

Profile

« Previous | Next » 

Revision 42621

Chnaged Resource to Autowired

View differences:

OAILookUpClient.java
3 3
import java.util.List;
4 4
import java.util.function.Function;
5 5

  
6
import javax.annotation.Resource;
7

  
8
import org.apache.commons.lang3.StringUtils;
9
import org.apache.commons.logging.Log;
10
import org.apache.commons.logging.LogFactory;
11
import org.dom4j.DocumentException;
12
import org.springframework.beans.factory.annotation.Value;
13
import org.springframework.cache.annotation.CacheEvict;
14
import org.springframework.cache.annotation.Cacheable;
15

  
16 6
import com.google.common.collect.Lists;
17

  
18 7
import eu.dnetlib.enabling.locators.UniqueServiceLocator;
19 8
import eu.dnetlib.miscutils.functional.xml.ApplyXslt;
20 9
import eu.dnetlib.oai.conf.OAIConfigurationExistReader;
......
24 13
import eu.dnetlib.rmi.provision.MDFInfo;
25 14
import eu.dnetlib.rmi.provision.OaiPublisherException;
26 15
import eu.dnetlib.rmi.provision.OaiPublisherRuntimeException;
16
import org.apache.commons.lang3.StringUtils;
17
import org.apache.commons.logging.Log;
18
import org.apache.commons.logging.LogFactory;
19
import org.dom4j.DocumentException;
20
import org.springframework.beans.factory.annotation.Autowired;
21
import org.springframework.beans.factory.annotation.Value;
22
import org.springframework.cache.annotation.CacheEvict;
23
import org.springframework.cache.annotation.Cacheable;
27 24

  
28 25
/**
29 26
 * Helper class for common queries to the IS.
......
40 37
	/**
41 38
	 * lookup service.
42 39
	 */
43
	@Resource
40
	@Autowired
44 41
	private UniqueServiceLocator serviceLocator;
45 42

  
46
	@Resource
43
	@Autowired
47 44
	private OAIConfigurationExistReader configuration;
48 45

  
49 46
	public List<MDFInfo> listMetadataFormats(final boolean onlyEnabled) throws ISLookUpException, DocumentException, OaiPublisherException {

Also available in: Unified diff