Mercurial > dive4elements > framework
view artifacts/src/main/java/de/intevation/artifacts/ArtifactFactory.java @ 9:a5a279a0ee35
Laid tracks for artifacts being removed from artifact database.
artifacts/trunk@24 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 04 Sep 2009 16:06:44 +0000 |
parents | f95d9a449215 |
children | e8626caac353 |
line wrap: on
line source
package de.intevation.artifacts; import org.w3c.dom.Document; import org.w3c.dom.Node; /** * 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 * @param factoryNode the ConfigurationNode of this Factory */ void setup(Document config, Node factoryNode); } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8: