ingo@100: /* ingo@100: * Copyright (c) 2010 by Intevation GmbH ingo@100: * ingo@100: * This program is free software under the LGPL (>=v2.1) ingo@100: * Read the file LGPL.txt coming with the software for details ingo@100: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@100: */ ingo@100: sascha@69: package de.intevation.artifactdatabase; sascha@69: sascha@207: import de.intevation.artifacts.common.utils.XMLUtils; sascha@207: sascha@69: import de.intevation.artifacts.CallMeta; sascha@69: import de.intevation.artifacts.Service; sascha@69: import de.intevation.artifacts.ServiceFactory; sascha@69: sascha@69: import org.apache.log4j.Logger; sascha@69: sascha@69: import org.w3c.dom.Document; sascha@69: sascha@89: /** sascha@89: * Trivial implementation of an artifact database service. Useful to sascha@89: * be subclassed. sascha@90: * sascha@89: * @author Sascha L. Teichmann sascha@89: */ sascha@69: public class DefaultService sascha@69: implements Service sascha@69: { sascha@69: private static Logger logger = Logger.getLogger(DefaultService.class); sascha@69: sascha@89: public Document process( sascha@89: Document data, sascha@89: Object globalContext, sascha@89: CallMeta callMeta sascha@89: ) { sascha@69: if (logger.isDebugEnabled()) { sascha@69: logger.debug("Service.process"); sascha@69: } sascha@69: return XMLUtils.newDocument(); sascha@69: } sascha@69: sascha@69: public void setup(ServiceFactory factory, Object globalContext) { sascha@69: if (logger.isDebugEnabled()) { sascha@69: logger.debug("Service.setup"); sascha@69: } sascha@69: } sascha@69: } sascha@69: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :