Mercurial > dive4elements > framework
comparison artifacts/src/main/java/org/dive4elements/artifacts/Service.java @ 471:1a87cb24a446
Moved directories to org.dive4elements
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 10:50:31 +0200 |
parents | artifacts/src/main/java/de/intevation/artifacts/Service.java@9798e4d83681 |
children | 415df0fc4fa1 |
comparison
equal
deleted
inserted
replaced
470:19cb9729bd17 | 471:1a87cb24a446 |
---|---|
1 /* | |
2 * Copyright (c) 2010 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 | |
9 package de.intevation.artifacts; | |
10 | |
11 import java.io.Serializable; | |
12 | |
13 import org.w3c.dom.Document; | |
14 | |
15 /** | |
16 * The idea is to process some input XML document to produce an output | |
17 * XML document. | |
18 * @author <a href="mailto:sascha.teichmann@intevation.de">Sascha L. Teichmann</a> | |
19 */ | |
20 public interface Service | |
21 extends Serializable | |
22 { | |
23 interface Output { | |
24 Object getData(); | |
25 | |
26 String getMIMEType(); | |
27 } // interface Output | |
28 | |
29 /** | |
30 * Processes some input XML document | |
31 * @param data The input data | |
32 * @param globalContext The global context of the artifact database. | |
33 * @param callMeta The call meta contex, e.g. preferred languages. | |
34 * @return The result. | |
35 */ | |
36 Output process(Document data, GlobalContext globalContext, CallMeta callMeta); | |
37 | |
38 /** | |
39 * Setup the concrete processing service. This is done at startup time | |
40 * of the artifact database system. | |
41 * @param factory The service factory which created this service. | |
42 * @param globalContext The global context of the artifact database. | |
43 */ | |
44 void setup(ServiceFactory factory, GlobalContext globalContext); | |
45 } | |
46 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |