Example usage for java.net URLClassLoader subclass-usage

List of usage examples for java.net URLClassLoader subclass-usage

Introduction

In this page you can find the example usage for java.net URLClassLoader subclass-usage.

Usage

From source file Main.java

public class Main extends URLClassLoader {
    private URL url;

    public Main(URL url) {
        super(new URL[] { url });
        this.url = url;

From source file JarClassLoader.java

class JarClassLoader extends URLClassLoader {
    private URL url;

    public JarClassLoader(URL url) {
        super(new URL[] { url });
        this.url = url;

From source file JarClassLoader.java

class JarClassLoader extends URLClassLoader {
    private URL url;

    public JarClassLoader(URL url) {
        super(new URL[] { url });
        this.url = url;

From source file com.domeastudio.util.JarClassLoader.java

/**
 * Created by domea on 16-4-16.
 */
public class JarClassLoader extends URLClassLoader {
    public JarClassLoader(URL[] urls) {
        super(urls);

From source file org.mule.module.boot.MuleSystemClassLoader.java

/**
 * Loads a standard $MULE_HOME/lib/* hierarchy.
 */
public class MuleSystemClassLoader extends URLClassLoader {

    protected transient Log logger = LogFactory.getLog(getClass());

From source file net.sourceforge.pmd.util.ClasspathClassLoader.java

/**
 * Create a ClassLoader which loads classes using a CLASSPATH like String. If
 * the String looks like a URL to a file (e.g. starts with <code>file://</code>)
 * the file will be read with each line representing an path on the classpath.
 *
 * @author Edwin Chan

From source file io.vertx.core.impl.IsolatingClassLoader.java

/**
 * Before delegating to the parent, this classloader attempts to load the class first
 * (opposite of normal delegation model).
 * This allows multiple versions of the same class to be loaded by different classloaders which allows
 * us to isolate verticles so they can't easily interact
 *

From source file com.taobao.datax.engine.schedule.JarLoader.java

public class JarLoader extends URLClassLoader {

    private static Logger logger = Logger.getLogger(JarLoader.class);

    public JarLoader(String[] paths) {
        this(paths, JarLoader.class.getClassLoader());

From source file com.chiorichan.plugin.loader.PluginClassLoader.java

/**
 * A ClassLoader for plugins, to allow shared classes across multiple plugins
 */
final class PluginClassLoader extends URLClassLoader {
    private final JavaPluginLoader loader;
    private final Map<String, Class<?>> classes = new HashMap<String, Class<?>>();

From source file org.mc4j.ems.connection.support.classloader.ChildFirstClassloader.java

/**
 * WARNING: GH - DISGUSTING HACK
 * This is an aweful little hack that allows us to execute under jdk 1.5 (which includes jmx)
 * while utilizing the jmx classes we load from somewhere else. We just override the classloader
 * delegation for cases of the "javax.management" classes.
 *