Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
OAISetHelper.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.oai.conf; |
2 | 2 |
|
3 | 3 |
import java.util.List; |
4 |
|
|
5 | 4 |
import javax.annotation.Resource; |
6 | 5 |
|
7 |
import org.apache.commons.lang3.StringUtils; |
|
8 |
import org.apache.commons.logging.Log; |
|
9 |
import org.apache.commons.logging.LogFactory; |
|
10 |
|
|
11 | 6 |
import eu.dnetlib.oai.info.SetInfo; |
12 | 7 |
import eu.dnetlib.oai.mongo.MongoPublisherStore; |
13 | 8 |
import eu.dnetlib.oai.mongo.MongoPublisherStoreDAO; |
14 | 9 |
import eu.dnetlib.oai.sets.MongoSetCollection; |
15 | 10 |
import eu.dnetlib.rmi.provision.MDFInfo; |
16 | 11 |
import eu.dnetlib.rmi.provision.OaiPublisherRuntimeException; |
12 |
import org.apache.commons.lang3.StringUtils; |
|
13 |
import org.apache.commons.logging.Log; |
|
14 |
import org.apache.commons.logging.LogFactory; |
|
15 |
import org.springframework.beans.factory.annotation.Autowired; |
|
17 | 16 |
|
18 | 17 |
public class OAISetHelper { |
19 | 18 |
|
... | ... | |
21 | 20 |
|
22 | 21 |
@Resource(name = "oaiConfigurationExistReader") |
23 | 22 |
private OAIConfigurationReader configurationReader; |
24 |
@Resource
|
|
23 |
@Autowired
|
|
25 | 24 |
private MongoPublisherStoreDAO mongoPublisherStoreDAO; |
26 |
@Resource
|
|
25 |
@Autowired
|
|
27 | 26 |
private MongoSetCollection mongoSetCollection; |
28 | 27 |
|
29 | 28 |
public void loadConfiguration(final String dbName) { |
Also available in: Unified diff
Chnaged Resource to Autowired