Mercurial > lada > lada-server
comparison src/main/java/de/intevation/lada/rest/SMessstelleService.java @ 133:750585244083
Use named injection points in stammdaten repositories.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 13 Jun 2013 17:17:14 +0200 |
parents | 5abec5413d65 |
children | 8250e5bb7c84 |
comparison
equal
deleted
inserted
replaced
132:07e8324c04a4 | 133:750585244083 |
---|---|
3 import java.util.List; | 3 import java.util.List; |
4 import java.util.logging.Logger; | 4 import java.util.logging.Logger; |
5 | 5 |
6 import javax.enterprise.context.RequestScoped; | 6 import javax.enterprise.context.RequestScoped; |
7 import javax.inject.Inject; | 7 import javax.inject.Inject; |
8 import javax.inject.Named; | |
8 import javax.ws.rs.GET; | 9 import javax.ws.rs.GET; |
9 import javax.ws.rs.Path; | 10 import javax.ws.rs.Path; |
10 import javax.ws.rs.PathParam; | 11 import javax.ws.rs.PathParam; |
11 import javax.ws.rs.Produces; | 12 import javax.ws.rs.Produces; |
12 | 13 |
13 import de.intevation.lada.data.Repository; | 14 import de.intevation.lada.data.Repository; |
14 import de.intevation.lada.model.SMessStelle; | 15 import de.intevation.lada.model.SMessStelle; |
15 import javax.inject.Named; | |
16 | 16 |
17 /** | 17 /** |
18 * This class produces a RESTful service to read the contents of s_messstelle | 18 * This class produces a RESTful service to read the contents of s_messstelle |
19 * table. | 19 * table. |
20 * | 20 * |
25 public class SMessstelleService | 25 public class SMessstelleService |
26 { | 26 { |
27 /** | 27 /** |
28 * The Repository for SMessStelle. | 28 * The Repository for SMessStelle. |
29 */ | 29 */ |
30 @Inject @Named | 30 @Inject |
31 @Named("readolyrepository") | |
31 private Repository repository; | 32 private Repository repository; |
32 | 33 |
33 /** | 34 /** |
34 * The logger for this class | 35 * The logger for this class |
35 */ | 36 */ |