view artifacts/src/main/java/de/intevation/artifacts/ArtifactDatabase.java @ 31:c4d85a8532d1

Artifact.out() is now called with an java.io.Outpustream instead of producing bytes. artifacts/trunk@77 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sat, 12 Sep 2009 10:45:28 +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:

http://dive4elements.wald.intevation.org