comparison artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java @ 1:11c82d3f125e

Checked in the central interfaces of the artifact system. artifacts/trunk@6 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 02 Sep 2009 14:03:48 +0000
parents
children 13a12b607baf
comparison
equal deleted inserted replaced
0:458bffbf57c0 1:11c82d3f125e
1 package de.intevation.artifacts;
2
3 /**
4 * Interface of an artifact producing factory.
5 *
6 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de)
7 */
8 public interface ArtifactFactory
9 {
10 /**
11 * The short name of this factory.
12 * @return the name of this factory.
13 */
14 String getName();
15
16 /**
17 * Description of this factory.
18 * @return description of the factory.
19 */
20 String getDescription();
21
22 /**
23 * Create a new artifact of certain type, given a general purpose context and
24 * an identifier.
25 * @param context a context from the ArtifactDatabase.
26 * @param identifier unique identifer for the new artifact
27 * @return a new {@linkplain de.intevation.artifacts.Artifact Artifact}
28 */
29 Artifact createArtifact(Object context, String identifier);
30 }
31 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org