Mercurial > dive4elements > framework
view artifacts/src/main/java/de/intevation/artifacts/ArtifactDatabase.java @ 17:5a6b6a3debc7
Integrated logging into artifact database.
artifacts/trunk@33 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 08 Sep 2009 06:29:52 +0000 |
parents | 13a12b607baf |
children | c2d53bd30ab8 |
line wrap: on
line source
package de.intevation.artifacts; /** * Interface of an artifact managing database. * * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) */ public interface ArtifactDatabase { /** * List of artifact factories names accessible through the database. * @return names of the factories. */ String [] getArtifactFactoryNames(); /** * Look up an artifact by its identifier. * @return the artifact. null if the artifact is not found. */ Artifact getArtifact(String identifier); /** * Creates new artifact with a certain factory. * @param factoryName the name of the factory. Name out of {@link #getArtifactFactoryNames() getArtifactFactoryNames()}. */ Artifact createArtifactWithFactory(String factoryName); /** * Returns the global artifact runtime context. * @return the runtime context */ Object getArtifactContext(); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: