Mercurial > dive4elements > framework
view artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java @ 33:251e8904d6c2
Make the Interfaces Serializable to make them usable in the Artifactdatabase.
Bug Fixed in SQL-Statement
artifacts/trunk@81 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 14 Sep 2009 13:36:35 +0000 |
parents | c2d53bd30ab8 |
children | 5fbd8e65bdf5 |
line wrap: on
line source
package de.intevation.artifactdatabase; import org.w3c.dom.Document; import de.intevation.artifacts.Artifact; import de.intevation.artifacts.CallContext; import de.intevation.artifacts.ArtifactFactory; import org.apache.log4j.Logger; import java.io.IOException; import java.io.OutputStream; /** * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) */ public class DefaultArtifact implements Artifact { private static Logger logger = Logger.getLogger(DefaultArtifact.class); protected String identifier; public DefaultArtifact() { } public String identifier() { return this.identifier; } public String hash() { return String.valueOf(hashCode()); } public Document describe(CallContext context) { return XMLUtils.newDocument(); } public Document advance(Document target, CallContext context) { return XMLUtils.newDocument(); } public Document feed(Document target, CallContext context) { return XMLUtils.newDocument(); } public void out( Document format, OutputStream out, CallContext context ) throws IOException { } public void setup(String identifier, ArtifactFactory factory, Object context) { this.identifier = identifier; } public void endOfLife(Object context) { } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: