Mercurial > dive4elements > framework
comparison artifact-database/src/main/java/de/intevation/artifactdatabase/DefaultArtifact.java @ 32:c2d53bd30ab8
Re-factored artifact API for better integration of background processing.
artifacts/trunk@78 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Sun, 13 Sep 2009 14:50:53 +0000 |
parents | c4d85a8532d1 |
children | 5fbd8e65bdf5 |
comparison
equal
deleted
inserted
replaced
31:c4d85a8532d1 | 32:c2d53bd30ab8 |
---|---|
1 package de.intevation.artifactdatabase; | 1 package de.intevation.artifactdatabase; |
2 | 2 |
3 import org.w3c.dom.Document; | 3 import org.w3c.dom.Document; |
4 | 4 |
5 import de.intevation.artifacts.Artifact; | 5 import de.intevation.artifacts.Artifact; |
6 import de.intevation.artifacts.CallContext; | |
6 import de.intevation.artifacts.ArtifactFactory; | 7 import de.intevation.artifacts.ArtifactFactory; |
7 | 8 |
8 import org.apache.log4j.Logger; | 9 import org.apache.log4j.Logger; |
9 | 10 |
10 import java.io.IOException; | 11 import java.io.IOException; |
29 | 30 |
30 public String hash() { | 31 public String hash() { |
31 return String.valueOf(hashCode()); | 32 return String.valueOf(hashCode()); |
32 } | 33 } |
33 | 34 |
34 public Document describe(Object context) { | 35 public Document describe(CallContext context) { |
35 return XMLUtils.newDocument(); | 36 return XMLUtils.newDocument(); |
36 } | 37 } |
37 | 38 |
38 public Document advance(Document target, Object context) { | 39 public Document advance(Document target, CallContext context) { |
39 return XMLUtils.newDocument(); | 40 return XMLUtils.newDocument(); |
40 } | 41 } |
41 | 42 |
42 public Document feed(Document target, Object context) { | 43 public Document feed(Document target, CallContext context) { |
43 return XMLUtils.newDocument(); | 44 return XMLUtils.newDocument(); |
44 } | 45 } |
45 | 46 |
46 public void out( | 47 public void out( |
47 Document format, | 48 Document format, |
48 OutputStream out, | 49 OutputStream out, |
49 Object context | 50 CallContext context |
50 ) | 51 ) |
51 throws IOException | 52 throws IOException |
52 { | 53 { |
53 } | 54 } |
54 | 55 |