hudson
Class PluginFirstClassLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by org.apache.tools.ant.AntClassLoader
          extended by hudson.PluginFirstClassLoader
All Implemented Interfaces:
Closeable, EventListener, org.apache.tools.ant.BuildListener, org.apache.tools.ant.SubBuildListener

public class PluginFirstClassLoader
extends org.apache.tools.ant.AntClassLoader
implements Closeable

classLoader which use first /WEB-INF/lib/*.jar and /WEB-INF/classes before core classLoader you must use the pluginFirstClassLoader true in the maven-hpi-plugin

Since:
1.371
Author:
olamy

Constructor Summary
PluginFirstClassLoader()
           
 
Method Summary
 void addPathFiles(Collection<File> paths)
           
 void close()
           
protected  Enumeration findResources(String name)
           
protected  Enumeration findResources(String arg0, boolean arg1)
           
 URL getResource(String arg0)
           
 InputStream getResourceAsStream(String name)
           
 List<URL> getURLs()
           
 
Methods inherited from class org.apache.tools.ant.AntClassLoader
addJavaLibraries, addLoaderPackageRoot, addPathComponent, addPathElement, addPathFile, addSystemPackageRoot, buildFinished, buildStarted, cleanup, defineClassFromData, definePackage, definePackage, findClass, forceLoadClass, forceLoadSystemClass, getClasspath, getConfiguredParent, getNamedResources, getResourceURL, initializeClass, isInPath, loadClass, log, messageLogged, newAntClassLoader, resetThreadContextLoader, setClassPath, setIsolated, setParent, setParentFirst, setProject, setThreadContextLoader, subBuildFinished, subBuildStarted, targetFinished, targetStarted, taskFinished, taskStarted, toString
 
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findSystemClass, getPackage, getPackages, getParent, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginFirstClassLoader

public PluginFirstClassLoader()
Method Detail

addPathFiles

public void addPathFiles(Collection<File> paths)
                  throws IOException
Throws:
IOException

getURLs

public List<URL> getURLs()
Returns:
List of jar used by the plugin /WEB-INF/lib/*.jar and classes directory /WEB-INF/classes

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Throws:
IOException

findResources

protected Enumeration findResources(String arg0,
                                    boolean arg1)
                             throws IOException
Overrides:
findResources in class org.apache.tools.ant.AntClassLoader
Throws:
IOException

findResources

protected Enumeration findResources(String name)
                             throws IOException
Overrides:
findResources in class org.apache.tools.ant.AntClassLoader
Throws:
IOException

getResource

public URL getResource(String arg0)
Overrides:
getResource in class org.apache.tools.ant.AntClassLoader

getResourceAsStream

public InputStream getResourceAsStream(String name)
Overrides:
getResourceAsStream in class org.apache.tools.ant.AntClassLoader


Copyright © 2004-2013. All Rights Reserved.