Package org.pentaho.di.core.plugins
Class KettleURLClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- org.pentaho.di.core.plugins.KettleURLClassLoader
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Direct Known Subclasses:
KettleSelectiveParentFirstClassLoader
public class KettleURLClassLoader extends URLClassLoader
-
-
Constructor Summary
Constructors Constructor Description KettleURLClassLoader(URL[] url, ClassLoader classLoader)
KettleURLClassLoader(URL[] url, ClassLoader classLoader, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addURL(URL url)
void
closeClassLoader()
This method is designed to shutdown out classloader file locks in windows.String
getName()
URL
getResource(String name)
protected Class<?>
loadClass(String arg0, boolean arg1)
Class<?>
loadClass(String name, ProtectionDomain protectionDomain)
protected Class<?>
loadClassFromParent(String arg0, boolean arg1)
protected Class<?>
loadClassFromThisLoader(String arg0, boolean arg1)
void
setName(String name)
String
toString()
-
Methods inherited from class java.net.URLClassLoader
close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getPackage, getPackages, getParent, getPlatformClassLoader, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Constructor Detail
-
KettleURLClassLoader
public KettleURLClassLoader(URL[] url, ClassLoader classLoader)
-
KettleURLClassLoader
public KettleURLClassLoader(URL[] url, ClassLoader classLoader, String name)
-
-
Method Detail
-
addURL
protected void addURL(URL url)
- Overrides:
addURL
in classURLClassLoader
-
setName
public void setName(String name)
-
getName
public String getName()
- Overrides:
getName
in classClassLoader
-
loadClassFromThisLoader
protected Class<?> loadClassFromThisLoader(String arg0, boolean arg1) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
loadClassFromParent
protected Class<?> loadClassFromParent(String arg0, boolean arg1) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
loadClass
protected Class<?> loadClass(String arg0, boolean arg1) throws ClassNotFoundException
- Overrides:
loadClass
in classClassLoader
- Throws:
ClassNotFoundException
-
loadClass
public Class<?> loadClass(String name, ProtectionDomain protectionDomain)
-
closeClassLoader
public void closeClassLoader()
This method is designed to shutdown out classloader file locks in windows.
-
getResource
public URL getResource(String name)
- Overrides:
getResource
in classClassLoader
-
-