comparison artifacts/src/main/java/de/intevation/artifacts/Service.java @ 299:a8d62eb93cd4

Services now take GlobalContext on setup and process. artifacts/trunk@2386 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 21 Jul 2011 14:39:45 +0000
parents 933bbc9fc11f
children 9798e4d83681
comparison
equal deleted inserted replaced
298:a5e6d1923c95 299:a8d62eb93cd4
25 * @param data The input data 25 * @param data The input data
26 * @param globalContext The global context of the artifact database. 26 * @param globalContext The global context of the artifact database.
27 * @param callMeta The call meta contex, e.g. preferred languages. 27 * @param callMeta The call meta contex, e.g. preferred languages.
28 * @return The result output XML document. 28 * @return The result output XML document.
29 */ 29 */
30 Document process(Document data, Object globalContext, CallMeta callMeta); 30 Document process(Document data, GlobalContext globalContext, CallMeta callMeta);
31 31
32 /** 32 /**
33 * Setup the concrete processing service. This is done at startup time 33 * Setup the concrete processing service. This is done at startup time
34 * of the artifact database system. 34 * of the artifact database system.
35 * @param factory The service factory which created this service. 35 * @param factory The service factory which created this service.
36 * @param globalContext The global context of the artifact database. 36 * @param globalContext The global context of the artifact database.
37 */ 37 */
38 void setup(ServiceFactory factory, Object globalContext); 38 void setup(ServiceFactory factory, GlobalContext globalContext);
39 } 39 }
40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : 40 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org