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:
Closeable
,AutoCloseable
- Enclosing class:
MicroClassReader
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the orig.protected Class
<?> 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
(ClassLoader orig) Set the orig.toString()
Methods inherited from class java.net.URLClassLoader
addURL, 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, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Field Details
-
orig
-
-
Constructor Details
-
DummyClassLoader
-
-
Method Details
-
getOriginal
Get the orig.- Returns:
- The orig.
-
setOriginal
Set the orig.- Parameters:
orig
- The orig to set.
-
loadClass
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 classClassLoader
- Throws:
ClassNotFoundException
-
toString
-