comparison src/main/java/de/intevation/artifacts/httpclient/utils/ArtifactCreator.java @ 2:2fdfa20cfa63

Added an interface that is used to create instances of artifacts depending on the framework that includes this lib. The create() method of the HttpClient makes use of this interface. http-client/trunk@1325 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 17 Feb 2011 11:19:02 +0000
parents
children
comparison
equal deleted inserted replaced
1:c9ac6642973c 2:2fdfa20cfa63
1 /*
2 * Copyright (c) 2011 by Intevation GmbH
3 *
4 * This program is free software under the LGPL (>=v2.1)
5 * Read the file LGPL.txt coming with the software for details
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */
8 package de.intevation.artifacts.httpclient.utils;
9
10 import org.w3c.dom.Document;
11
12
13 /**
14 * This interface is used to create new implementation dependend instances of an
15 * <i>Artifact</i>.
16 *
17 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
18 */
19 public interface ArtifactCreator {
20
21 /**
22 * This method should return a new Artifact object.
23 *
24 * @param doc A document that describes the artifact.
25 *
26 * @return an implementation dependend instance of an <i>Artifact</i>.
27 */
28 public Object create(Document doc);
29 }
30 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org