org.beigesoft.lang.IUrlClassLoader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of a-jetty-base Show documentation
Show all versions of a-jetty-base Show documentation
A-Jetty Base can run on Android Java as well as on standard Java 7+ and it can run precompiled JSP/JSTL.
package org.beigesoft.lang;
/*
* Beigesoft ™
*
* Licensed under the Apache License, Version 2.0
*
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
import java.util.Enumeration;
import java.io.IOException;
import java.net.URL;
/**
* Cross platform abstraction of UrlClassLoader.
*
* @author Yury Demidenko
*/
public interface IUrlClassLoader {
/**
* Find class.
* @param pName class name
* @return class if exist
* @throws ClassNotFoundException ClassNotFoundException
**/
Class> findClass(String pName) throws ClassNotFoundException;
/**
* Add URL.
* @param pUrl URL
**/
void addUrl(URL pUrl);
/**
* Get resources.
* @param pName class name
* @return resources
* @throws IOException IOException
**/
Enumeration getResources(String pName) throws IOException;
/**
* Get resource.
* @param pName class name
* @return resource
**/
URL getResource(String pName);
/**
* Load class.
* @param pName class name
* @return class
* @throws ClassNotFoundException ClassNotFoundException
**/
Class> loadClass(String pName) throws ClassNotFoundException;
}