/* Copyright (2005-2012) Schibsted ASA * This file is part of Possom. * * Possom is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Possom is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Possom. If not, see <http://www.gnu.org/licenses/>. * * Created on 23 January 2006, 13:54 */ package no.sesat.search.site.config; import javax.xml.parsers.DocumentBuilder; import no.sesat.commons.ioc.BaseContext; import no.sesat.search.site.SiteContext; /** Defines the context for consumers of DocumentLoaders. * * @version $Id: ResourceContext.java 2045 2006-01-25 12:10:01Z mickw $ * */ public interface DocumentContext extends BaseContext { /** Create a new DocumentLoader for the given resource name/path and load it with the given DocumentBuilder. * @param resource the resource name/path. * @param builder the DocumentBuilder to build the DOM resource with. * @return the new DocumentLoader to use. **/ DocumentLoader newDocumentLoader(SiteContext siteCxt, String resource, DocumentBuilder builder); }