Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/Artifact.java @ 75:d4c4c23847f5
Extended the Artifact-Interface-Method setup to be able to put the XML-Document which can contain further Data
to the Artifact-Implementation.
artifacts/trunk@649 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Mon, 01 Feb 2010 13:54:05 +0000 |
parents | 9a29899b31e5 |
children | 48d1a9a082c2 |
comparison
equal
deleted
inserted
replaced
74:66f43d1e69eb | 75:d4c4c23847f5 |
---|---|
1 package de.intevation.artifacts; | 1 package de.intevation.artifacts; |
2 | 2 |
3 import java.io.IOException; | |
4 import java.io.OutputStream; | |
5 import java.io.Serializable; | |
6 | |
3 import org.w3c.dom.Document; | 7 import org.w3c.dom.Document; |
4 | |
5 import java.io.Serializable; | |
6 import java.io.OutputStream; | |
7 import java.io.IOException; | |
8 | 8 |
9 /** | 9 /** |
10 * Interface of the core component of the artifact system: <strong>The artifact</strong>. | 10 * Interface of the core component of the artifact system: <strong>The artifact</strong>. |
11 * <br> | 11 * <br> |
12 * | 12 * |
89 * When created by a factory this method is called to | 89 * When created by a factory this method is called to |
90 * initialize the artifact. | 90 * initialize the artifact. |
91 * @param identifier The identifier from artifact database | 91 * @param identifier The identifier from artifact database |
92 * @param factory The factory which created this artifact. | 92 * @param factory The factory which created this artifact. |
93 * @param context The global context of the runtime system. | 93 * @param context The global context of the runtime system. |
94 * @param data The data which can be use to setup an Artifact with | |
95 * more details. | |
94 */ | 96 */ |
95 public void setup( | 97 public void setup( |
96 String identifier, | 98 String identifier, |
97 ArtifactFactory factory, | 99 ArtifactFactory factory, |
98 Object context); | 100 Object context, |
101 Document data); | |
99 | 102 |
100 /** | 103 /** |
101 * Called from artifact database when an artifact is | 104 * Called from artifact database when an artifact is |
102 * going to be removed from system. | 105 * going to be removed from system. |
103 * @param context The global context of the runtime system. | 106 * @param context The global context of the runtime system. |