001package org.nuxeo.runtime.tomcat.dev;
002
003import java.io.IOException;
004import java.io.InputStream;
005import java.net.URL;
006import java.util.Enumeration;
007
008/*
009 * (C) Copyright 2006-2010 Nuxeo SAS (http://nuxeo.com/) and contributors.
010 *
011 * All rights reserved. This program and the accompanying materials
012 * are made available under the terms of the GNU Lesser General Public License
013 * (LGPL) version 2.1 which accompanies this distribution, and is available at
014 * http://www.gnu.org/licenses/lgpl.html
015 *
016 * This library is distributed in the hope that it will be useful,
017 * but WITHOUT ANY WARRANTY; without even the implied warranty of
018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
019 * Lesser General Public License for more details.
020 *
021 * Contributors:
022 *     bstefanescu
023 */
024
025/**
026 * @author <a href="mailto:bs@nuxeo.com">Bogdan Stefanescu</a>
027 */
028public interface LocalClassLoader {
029
030    Class<?> loadLocalClass(String name, boolean resolve) throws ClassNotFoundException;
031
032    Class<?> loadClass(String name) throws ClassNotFoundException;
033
034    void addURL(URL url);
035
036    URL getLocalResource(String name);
037
038    Enumeration<URL> getLocalResources(String name) throws IOException;
039
040    InputStream getLocalResourceAsStream(String name) throws IOException;
041
042}