Revision 42621
Added by Sandro La Bruzzo almost 8 years ago
ResultSetController.java | ||
---|---|---|
3 | 3 |
import java.util.ArrayList; |
4 | 4 |
import java.util.List; |
5 | 5 |
|
6 |
import javax.annotation.Resource; |
|
7 |
|
|
6 |
import com.google.gson.Gson; |
|
7 |
import eu.dnetlib.enabling.resultset.listener.ResultSetListener; |
|
8 |
import eu.dnetlib.enabling.resultset.registry.ResultSetRegistry; |
|
9 |
import eu.dnetlib.rmi.common.ResultSetException; |
|
10 |
import org.springframework.beans.factory.annotation.Autowired; |
|
8 | 11 |
import org.springframework.stereotype.Controller; |
9 | 12 |
import org.springframework.web.bind.annotation.PathVariable; |
10 | 13 |
import org.springframework.web.bind.annotation.RequestMapping; |
11 | 14 |
import org.springframework.web.bind.annotation.RequestMethod; |
12 | 15 |
import org.springframework.web.bind.annotation.ResponseBody; |
13 | 16 |
|
14 |
import com.google.gson.Gson; |
|
15 |
|
|
16 |
import eu.dnetlib.enabling.resultset.listener.ResultSetListener; |
|
17 |
import eu.dnetlib.enabling.resultset.registry.ResultSetRegistry; |
|
18 |
import eu.dnetlib.rmi.common.ResultSetException; |
|
19 |
|
|
20 | 17 |
@Controller |
21 | 18 |
public class ResultSetController { |
22 | 19 |
|
23 |
@Resource
|
|
20 |
@Autowired
|
|
24 | 21 |
private ResultSetRegistry resultSetRegistry; |
25 | 22 |
|
26 | 23 |
@RequestMapping(value = "/rs/{rsId}/next/{n}", method = RequestMethod.GET) |
Also available in: Unified diff
Chnaged Resource to Autowired