blob: 952c0b6fbe824ac948fd0d4693c935a9316d8e4f [file] [log] [blame]
/* Copyright 2004 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.xmlbeans.impl.binding.tylar;
import java.io.IOException;
import java.net.URL;
import java.net.URI;
import org.apache.xmlbeans.XmlException;
/**
* Abstraction which can load a tylar from some location specified in a
* URI.
*
* @author Patrick Calaham <pcal@bea.com>
*/
public interface TylarLoader {
/**
* Loads a single tylar out of the given ClassLoader.
*
* @param cl ClassLoader from which to load the tylar
* @return
* @throws IOException if an i/o error occurs while processing
* @throws XmlException if an error occurs parsing the contents of the tylar.
*/
public Tylar load(ClassLoader cl) throws IOException, XmlException;
/**
* @deprecated
*/
public Tylar load(URI uri) throws IOException, XmlException;
}