comparison flys-client/src/main/java/de/intevation/flys/client/server/ArtifactServiceImpl.java @ 1367:ab8eb2f544f2

Replaced stdout and stderr logging with log4j loggers in server classes. flys-client/trunk@3069 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 25 Oct 2011 12:31:15 +0000
parents 478a571f1f94
children bc06a671ef60
comparison
equal deleted inserted replaced
1366:d0eb2202ffbe 1367:ab8eb2f544f2
1 package de.intevation.flys.client.server; 1 package de.intevation.flys.client.server;
2
3 import org.apache.log4j.Logger;
2 4
3 import com.google.gwt.user.server.rpc.RemoteServiceServlet; 5 import com.google.gwt.user.server.rpc.RemoteServiceServlet;
4 6
5 import de.intevation.flys.client.shared.exceptions.ServerException; 7 import de.intevation.flys.client.shared.exceptions.ServerException;
6 import de.intevation.flys.client.shared.model.Artifact; 8 import de.intevation.flys.client.shared.model.Artifact;
16 */ 18 */
17 public class ArtifactServiceImpl 19 public class ArtifactServiceImpl
18 extends RemoteServiceServlet 20 extends RemoteServiceServlet
19 implements ArtifactService 21 implements ArtifactService
20 { 22 {
23 private static final Logger logger =
24 Logger.getLogger(ArtifactServiceImpl.class);
25
26
21 /** 27 /**
22 * Creates new Artifacts based on a given Recommendation and factory. 28 * Creates new Artifacts based on a given Recommendation and factory.
23 * <b>Note, that all the work is done in ArtifactHelper!</b> 29 * <b>Note, that all the work is done in ArtifactHelper!</b>
24 * 30 *
25 * @param serverUrl The URL of the ArtifactServer. 31 * @param serverUrl The URL of the ArtifactServer.
34 String factory, 40 String factory,
35 Recommendation recom 41 Recommendation recom
36 ) 42 )
37 throws ServerException 43 throws ServerException
38 { 44 {
39 System.out.println("ArtifactServiceImpl.create"); 45 logger.info("ArtifactServiceImpl.create");
40 46
41 return ArtifactHelper.createArtifact(serverUrl, locale, factory, recom); 47 return ArtifactHelper.createArtifact(serverUrl, locale, factory, recom);
42 } 48 }
43 } 49 }
44 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 50 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org