Mercurial > dive4elements > framework
comparison artifacts/src/main/java/de/intevation/artifacts/ArtifactDatabase.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 managing database. | |
5 * | |
6 * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) | |
7 */ | |
8 public interface ArtifactDatabase | |
9 { | |
10 /** | |
11 * List of artifact factories names accessible through the database. | |
12 * @return names of the factories. | |
13 */ | |
14 String [] getArtifactFactoryNames(); | |
15 | |
16 /** | |
17 * Look up an artifact by its identifier. | |
18 * @return the artifact. null if the artifact is not found. | |
19 */ | |
20 Artifact getArtifact(String identifier); | |
21 | |
22 /** | |
23 * Creates new artifact with a certain factory. | |
24 * @param factoryName the name of the factory. Name out of {@see #getArtifactFactoryNames() getArtifactFactoryNames()}. | |
25 */ | |
26 Artifact createArtifactWithFactory(String factoryName); | |
27 } | |
28 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: |