Mercurial > dive4elements > framework
view 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 |
line wrap: on
line source
package de.intevation.artifacts; import org.w3c.dom.Document; /** * Interface of an artifact producing factory. * * @author Sascha L. Teichmann (sascha.teichmann@intevation.de) */ public interface ArtifactFactory { /** * The short name of this factory. * @return the name of this factory. */ String getName(); /** * Description of this factory. * @return description of the factory. */ String getDescription(); /** * Create a new artifact of certain type, given a general purpose context and * an identifier. * @param context a context from the ArtifactDatabase. * @param identifier unique identifer for the new artifact * @return a new {@linkplain de.intevation.artifacts.Artifact Artifact} */ Artifact createArtifact(String identifier, Object context); /** * Setup the factory with a given configuration * @param config the configuration */ void setup(Document config); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: