Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
OAIStoreSynchronizer.java | ||
---|---|---|
1 | 1 |
package eu.dnetlib.oai.sync; |
2 | 2 |
|
3 | 3 |
import java.util.concurrent.Callable; |
4 |
import javax.annotation.Resource; |
|
5 | 4 |
|
6 | 5 |
import eu.dnetlib.oai.conf.OAIConfigurationExistReader; |
7 | 6 |
import eu.dnetlib.oai.mongo.MongoPublisherStore; |
... | ... | |
11 | 10 |
import eu.dnetlib.rmi.provision.OaiPublisherRuntimeException; |
12 | 11 |
import org.apache.commons.logging.Log; |
13 | 12 |
import org.apache.commons.logging.LogFactory; |
13 |
import org.springframework.beans.factory.annotation.Autowired; |
|
14 | 14 |
|
15 | 15 |
public class OAIStoreSynchronizer { |
16 | 16 |
|
... | ... | |
18 | 18 |
/** |
19 | 19 |
* OAI Publisher configuration. |
20 | 20 |
*/ |
21 |
@Resource
|
|
21 |
@Autowired
|
|
22 | 22 |
private OAIConfigurationExistReader configuration; |
23 |
@Resource
|
|
23 |
@Autowired
|
|
24 | 24 |
private MongoPublisherStoreDAO publisherStoreDAO; |
25 | 25 |
|
26 | 26 |
public void synchronize(final Iterable<String> records, |
Also available in: Unified diff
Chnaged Resource to Autowired