001/*
002 * (C) Copyright 2006-2007 Nuxeo SAS (http://nuxeo.com/) and contributors.
003 *
004 * All rights reserved. This program and the accompanying materials
005 * are made available under the terms of the GNU Lesser General Public License
006 * (LGPL) version 2.1 which accompanies this distribution, and is available at
007 * http://www.gnu.org/licenses/lgpl.html
008 *
009 * This library is distributed in the hope that it will be useful,
010 * but WITHOUT ANY WARRANTY; without even the implied warranty of
011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
012 * Lesser General Public License for more details.
013 *
014 * Contributors:
015 *     dragos
016 *
017 * $Id$
018 */
019package org.nuxeo.ecm.platform.rendering;
020
021import java.util.Collection;
022
023/**
024 * RenderingService core infrastructure.
025 *
026 * @author <a href="mailto:dm@nuxeo.com">Dragos Mihalache</a>
027 */
028public interface RenderingService {
029
030    /**
031     * Processes the given context and returns a collection of results.
032     *
033     * @param ctx the context
034     * @return the result
035     * @throws RenderingException
036     */
037    Collection<RenderingResult> process(RenderingContext ctx) throws RenderingException;
038
039    RenderingEngine getEngine(String format);
040
041    void registerEngine(RenderingEngine engine);
042
043    void unregisterEngine(String format);
044
045}