Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java @ 4:13a12b607baf
Added mechanism to create an share a global context in the artifact database.
artifacts/trunk@13 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 04 Sep 2009 08:32:09 +0000 |
parents | 11c82d3f125e |
children | f95d9a449215 |
comparison
equal
deleted
inserted
replaced
3:b1ec257e9d8d | 4:13a12b607baf |
---|---|
1 package de.intevation.artifacts; | 1 package de.intevation.artifacts; |
2 | |
3 import org.w3c.dom.Document; | |
2 | 4 |
3 /** | 5 /** |
4 * Interface of an artifact producing factory. | 6 * Interface of an artifact producing factory. |
5 * | 7 * |
6 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) | 8 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) |
24 * an identifier. | 26 * an identifier. |
25 * @param context a context from the ArtifactDatabase. | 27 * @param context a context from the ArtifactDatabase. |
26 * @param identifier unique identifer for the new artifact | 28 * @param identifier unique identifer for the new artifact |
27 * @return a new {@linkplain de.intevation.artifacts.Artifact Artifact} | 29 * @return a new {@linkplain de.intevation.artifacts.Artifact Artifact} |
28 */ | 30 */ |
29 Artifact createArtifact(Object context, String identifier); | 31 Artifact createArtifact(String identifier, Object context); |
32 | |
33 /** | |
34 * Setup the factory with a given configuration | |
35 * @param config the configuration | |
36 */ | |
37 void setup(Document config); | |
30 } | 38 } |
31 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: | 39 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: |