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 org.wso2.carbon.ui.JspClassLoader.java

/**
 * Jasper requires that this class loader be an instance of URLClassLoader.
 * At runtime it uses the URLClassLoader's getURLs method to find jar files that are in turn searched for TLDs. In a webapp
 * these jar files would normally be located in WEB-INF/lib. In the OSGi context, this behaviour is provided by returning the
 * URLs of the jar files contained on the Bundle-ClassPath. Other than jar file tld resources this classloader is not used for
 * loading classes which should be done by the other contained class loaders.

From source file org.diorite.plugin.PluginClassLoader.java

public class PluginClassLoader extends URLClassLoader {
    private static final Map<String, Class<?>> globalClasses = new HashMap<>(100); // Global classes
    private final Map<String, Class<?>> classes = new HashMap<>(50); // Local classes

    public PluginClassLoader(final File jarToLoad) throws MalformedURLException {
        super(new URL[] { jarToLoad.toURI().toURL() });

From source file czlab.wabbit.CljPodLoader.java

/**
 */
@SuppressWarnings("unused")
public class CljPodLoader extends URLClassLoader {

    public static final Logger TLOG = getLogger(CljPodLoader.class);

From source file org.pentaho.platform.plugin.services.pluginmgr.PluginClassLoader.java

/**
 * A custom implementation of {@link URLClassLoader} for Pentaho Platform Plugins. It is used to load plugin jars and
 * classes and aids in retrieving resources by providing a root directory to search for resources related to plugins.
 * <p>
 * Note: {@link PluginClassLoader} will search for jar files in a 'lib' subdirectory under the pluginDir provided in the
 * constructor. Class and other resources will be visible to this classloader in either the root directory of the plugin

From source file org.apache.hadoop.yarn.util.ApplicationClassLoader.java

/**
 * A {@link URLClassLoader} for YARN application isolation. Classes from
 * the application JARs are loaded in preference to the parent loader.
 */
@Public
@Unstable

From source file org.apache.openejb.core.TempClassLoader.java

/**
 * ClassLoader implementation that allows classes to be temporarily
 * loaded and then thrown away. Useful for verifying and inspecting
 * a class without first loading(and thus polluting) the parent
 * ClassLoader.
 * </p>

From source file rapture.common.jar.AbstractClassLoader.java

/**
 * Class loader for workflows that uses Rapture's internal Jar system to add dependencies. Dependencies are listed in the workflow definition at either the step
 * or workflow level. Step-level dependencies get priority over workflow-level dependencies. This is an abstract class. The concrete implementations are in
 * ParentFirstClassLoader and ChildFirstClassLoader which differ in terms of where jars are loaded first.
 * 
 * @author dukenguyen

From source file javarestart.WebClassLoader.java

/**
 * @author Nikita Lipsky
 */
public class WebClassLoader extends URLClassLoader {

    private URL baseURL;

From source file info.dolezel.fatrat.plugins.helpers.JarClassLoader.java

/**
 *
 * @author lubos
 */
class JarClassLoader extends URLClassLoader {
    Map<String, JarClassLoader> children = new HashMap<String, JarClassLoader>();

From source file org.ireland.jnetty.loader.WebAppClassLoader.java

/**
 * ClassLoader for HttpContext. Specializes URLClassLoader with some utility and file mapping methods.
 * 
 * This loader defaults to the 2.3 servlet spec behavior where non system classes are loaded from the classpath in
 * preference to the parent loader. Java2 compliant loading, where the parent loader always has priority, can be
 * selected with the {@link org.eclipse.jetty.webapp.WebAppContext#setParentLoaderPriority(boolean)} method and