Package jadex.bytecode
Class ByteCodeClassLoader
- java.lang.Object
- 
- java.lang.ClassLoader
- 
- jadex.bytecode.ByteCodeClassLoader
 
 
- 
- All Implemented Interfaces:
- IByteCodeClassLoader
 
 public class ByteCodeClassLoader extends java.lang.ClassLoader implements IByteCodeClassLoader ClassLoader for generated classes.
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.ClassLoader[]delegatesAdditional delegates besides the parent.
 - 
Constructor SummaryConstructors Constructor Description ByteCodeClassLoader(java.lang.ClassLoader... parents)Creates the loader.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddDelegates(java.lang.ClassLoader[] parents)java.lang.ClassLoaderasClassLoader()Access to the classloader type.java.lang.Class<?>doDefineClass(byte[] classcode)Defines a new class.java.lang.Class<?>doDefineClass(java.lang.String name, byte[] b, int off, int len)Exposes the defineClass() method.java.lang.Class<?>doDefineClass(java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectiondomain)Exposes the defineClass() method.java.lang.Class<?>doDefineClassInParent(java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectiondomain)Exposes the defineClass() method for explicit indirect definition.protected java.lang.Class<?>findClass(java.lang.String name)Delegation.- 
Methods inherited from class java.lang.ClassLoaderclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findResource, findResources, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, loadClass, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface jadex.bytecode.IByteCodeClassLoaderloadClass
 
- 
 
- 
- 
- 
Method Detail- 
findClassprotected java.lang.Class<?> findClass(java.lang.String name) throws java.lang.ClassNotFoundExceptionDelegation.- Overrides:
- findClassin class- java.lang.ClassLoader
- Throws:
- java.lang.ClassNotFoundException
 
 - 
asClassLoaderpublic java.lang.ClassLoader asClassLoader() Access to the classloader type.- Specified by:
- asClassLoaderin interface- IByteCodeClassLoader
- Returns:
- ClassLoader.
 
 - 
doDefineClasspublic java.lang.Class<?> doDefineClass(byte[] classcode) Defines a new class.- Specified by:
- doDefineClassin interface- IByteCodeClassLoader
- Parameters:
- classcode- Code of the class.
- Returns:
- The generated class.
 
 - 
doDefineClasspublic java.lang.Class<?> doDefineClass(java.lang.String name, byte[] b, int off, int len)Exposes the defineClass() method.- Specified by:
- doDefineClassin interface- IByteCodeClassLoader
 
 - 
doDefineClasspublic java.lang.Class<?> doDefineClass(java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectiondomain)Exposes the defineClass() method.- Specified by:
- doDefineClassin interface- IByteCodeClassLoader
 
 - 
doDefineClassInParentpublic java.lang.Class<?> doDefineClassInParent(java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectiondomain)Exposes the defineClass() method for explicit indirect definition.- Specified by:
- doDefineClassInParentin interface- IByteCodeClassLoader
 
 - 
addDelegatesprotected void addDelegates(java.lang.ClassLoader[] parents) 
 
- 
 
-