diff gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactFactory.java @ 478:0e0c64c821dc

Added support to step back to the point for choosing a product. gnv-artifacts/trunk@547 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 15 Jan 2010 18:21:49 +0000
parents c0504976e606
children b1f5f2a8840f
line wrap: on
line diff
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactFactory.java	Fri Jan 15 10:13:18 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/artifacts/GNVArtifactFactory.java	Fri Jan 15 18:21:49 2010 +0000
@@ -1,34 +1,28 @@
 package de.intevation.gnv.artifacts;
 
+import org.w3c.dom.Document;
+import org.w3c.dom.Node;
+
+import org.apache.log4j.Logger;
+
 import de.intevation.artifactdatabase.DefaultArtifactFactory;
-import de.intevation.artifactdatabase.ProxyArtifact;
-import de.intevation.artifacts.Artifact;
-import de.intevation.gnv.artifacts.fis.SelectProductArtifact;
 
-import org.apache.log4j.Logger;
 
 /**
  * @author Ingo Weinzierl <ingo.weinzierl@intevation.de>
  */
 public class GNVArtifactFactory extends DefaultArtifactFactory {
 
+    public static final String XPATH_PRODUCT_FACTORY   = "artifact-factory";
+
     private static Logger logger = Logger.getLogger(GNVArtifactFactory.class);
 
     public GNVArtifactFactory() {
     }
 
     @Override
-    public Artifact createArtifact(String identifier, Object context) {
-        Artifact artifact = super.createArtifact(identifier, context);
-
-        if (artifact instanceof ProxyArtifact) {
-            SelectProductArtifact select = new SelectProductArtifact();
-            select.setup(identifier, this, context);
-
-            ((ProxyArtifact) artifact).setProxied(select);
-        }
-
-        return artifact;
+    public void setup(Document document, Node factoryNode) {
+        super.setup(document, factoryNode);
     }
 }
 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org