Package jadex.micro
Class MicroClassReader.DummyClassLoader
- java.lang.Object
-
- java.lang.ClassLoader
-
- java.security.SecureClassLoader
-
- java.net.URLClassLoader
-
- jadex.micro.MicroClassReader.DummyClassLoader
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- MicroClassReader
public static class MicroClassReader.DummyClassLoader extends java.net.URLClassLoader
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ClassLoader
orig
-
Constructor Summary
Constructors Constructor Description DummyClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, java.lang.ClassLoader orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ClassLoader
getOriginal()
Get the orig.protected java.lang.Class<?>
loadClass(java.lang.String name, boolean resolve)
This method implements a fallback to the library service baseclassloader if a) a library service classloader is used and b) the class was not found in the DummyClassLoader This still limits the scope of loadable classes to avoid accidental loading of non-enhanced user code while allowing Jadex classesto be in the baseclassloader instead of the system classloader.void
setOriginal(java.lang.ClassLoader orig)
Set the orig.java.lang.String
toString()
-
Methods inherited from class java.net.URLClassLoader
addURL, close, definePackage, findClass, findResource, findResources, getPermissions, getResourceAsStream, getURLs, newInstance, newInstance
-
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
-
-
-
Method Detail
-
getOriginal
public java.lang.ClassLoader getOriginal()
Get the orig.- Returns:
- The orig.
-
setOriginal
public void setOriginal(java.lang.ClassLoader orig)
Set the orig.- Parameters:
orig
- The orig to set.
-
loadClass
protected java.lang.Class<?> loadClass(java.lang.String name, boolean resolve) throws java.lang.ClassNotFoundException
This method implements a fallback to the library service baseclassloader if a) a library service classloader is used and b) the class was not found in the DummyClassLoader This still limits the scope of loadable classes to avoid accidental loading of non-enhanced user code while allowing Jadex classesto be in the baseclassloader instead of the system classloader.- Overrides:
loadClass
in classjava.lang.ClassLoader
- Throws:
java.lang.ClassNotFoundException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-