Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
GroovyJobNode.java | ||
---|---|---|
3 | 3 |
import java.io.IOException; |
4 | 4 |
import java.util.Map; |
5 | 5 |
|
6 |
import javax.annotation.Resource; |
|
7 |
|
|
8 |
import org.apache.commons.logging.Log; |
|
9 |
import org.apache.commons.logging.LogFactory; |
|
10 |
import org.springframework.beans.factory.annotation.Autowired; |
|
11 |
|
|
12 | 6 |
import com.google.common.collect.Maps; |
13 |
|
|
14 | 7 |
import eu.dnetlib.enabling.locators.UniqueServiceLocator; |
15 | 8 |
import eu.dnetlib.enabling.resultset.factory.ResultSetFactory; |
16 | 9 |
import eu.dnetlib.msro.workflows.graph.Arc; |
... | ... | |
21 | 14 |
import eu.dnetlib.rmi.manager.MSROException; |
22 | 15 |
import groovy.lang.GroovyShell; |
23 | 16 |
import groovy.util.GroovyScriptEngine; |
17 |
import org.apache.commons.logging.Log; |
|
18 |
import org.apache.commons.logging.LogFactory; |
|
19 |
import org.springframework.beans.factory.annotation.Autowired; |
|
24 | 20 |
|
25 | 21 |
public class GroovyJobNode extends SimpleJobNode { |
26 | 22 |
|
... | ... | |
37 | 33 |
private String transformationRuleId; |
38 | 34 |
private Map<String, String> groovyParams; |
39 | 35 |
|
40 |
@Resource
|
|
36 |
@Autowired
|
|
41 | 37 |
private UniqueServiceLocator serviceLocator; |
42 | 38 |
|
43 | 39 |
private Map<String, String> retrieveGroovyParameter() { |
Also available in: Unified diff
Chnaged Resource to Autowired