changeset 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 07e8324c04a4
children 8250e5bb7c84
files src/main/java/de/intevation/lada/rest/SDatenbasisService.java src/main/java/de/intevation/lada/rest/SMessstelleService.java src/main/java/de/intevation/lada/rest/SNetzBetreiberService.java src/main/java/de/intevation/lada/rest/SProbenartService.java src/main/java/de/intevation/lada/rest/SUmweltService.java
diffstat 5 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/rest/SDatenbasisService.java	Thu Jun 13 17:09:59 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/SDatenbasisService.java	Thu Jun 13 17:17:14 2013 +0200
@@ -26,7 +26,8 @@
     /**
      * The Repository for SDatenbasis.
      */
-    @Inject @Named
+    @Inject
+    @Named("readolyrepository")
     private Repository repository;
 
     /**
--- a/src/main/java/de/intevation/lada/rest/SMessstelleService.java	Thu Jun 13 17:09:59 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/SMessstelleService.java	Thu Jun 13 17:17:14 2013 +0200
@@ -5,6 +5,7 @@
 
 import javax.enterprise.context.RequestScoped;
 import javax.inject.Inject;
+import javax.inject.Named;
 import javax.ws.rs.GET;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -12,7 +13,6 @@
 
 import de.intevation.lada.data.Repository;
 import de.intevation.lada.model.SMessStelle;
-import javax.inject.Named;
 
 /**
  * This class produces a RESTful service to read the contents of s_messstelle
@@ -27,7 +27,8 @@
     /**
      * The Repository for SMessStelle.
      */
-    @Inject @Named
+    @Inject
+    @Named("readolyrepository")
     private Repository repository;
 
     /**
--- a/src/main/java/de/intevation/lada/rest/SNetzBetreiberService.java	Thu Jun 13 17:09:59 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/SNetzBetreiberService.java	Thu Jun 13 17:17:14 2013 +0200
@@ -26,7 +26,8 @@
     /**
      * The Repository for SDatenbasis.
      */
-    @Inject @Named
+    @Inject
+    @Named("readolyrepository")
     private Repository repository;
 
     /**
--- a/src/main/java/de/intevation/lada/rest/SProbenartService.java	Thu Jun 13 17:09:59 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/SProbenartService.java	Thu Jun 13 17:17:14 2013 +0200
@@ -26,7 +26,8 @@
     /**
      * The Repository for SProbenart.
      */
-    @Inject @Named
+    @Inject
+    @Named("readolyrepository")
     private Repository repository;
 
     /**
--- a/src/main/java/de/intevation/lada/rest/SUmweltService.java	Thu Jun 13 17:09:59 2013 +0200
+++ b/src/main/java/de/intevation/lada/rest/SUmweltService.java	Thu Jun 13 17:17:14 2013 +0200
@@ -5,6 +5,7 @@
 
 import javax.enterprise.context.RequestScoped;
 import javax.inject.Inject;
+import javax.inject.Named;
 import javax.ws.rs.GET;
 import javax.ws.rs.Path;
 import javax.ws.rs.PathParam;
@@ -12,7 +13,6 @@
 
 import de.intevation.lada.data.Repository;
 import de.intevation.lada.model.SUmwelt;
-import javax.inject.Named;
 
 /**
  * This class produces a RESTful service to read the contents of s_umwelt table.
@@ -26,7 +26,8 @@
     /**
      * The Repository for SUmwelt.
      */
-    @Inject @Named
+    @Inject
+    @Named("readolyrepository")
     private Repository repository;
 
     /**
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)