Package jadex.bytecode
Interface IByteCodeClassLoader
- 
- All Known Implementing Classes:
 ByteCodeClassLoader
public interface IByteCodeClassLoaderInterface for the byte code classloader implementations. 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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)Directly injects the class into the parent classloader.java.lang.Class<?>loadClass(java.lang.String name)Loads a class. 
 - 
 
- 
- 
Method Detail
- 
loadClass
java.lang.Class<?> loadClass(java.lang.String name) throws java.lang.ClassNotFoundExceptionLoads a class.- Parameters:
 name- Class name.- Returns:
 - The class.
 - Throws:
 java.lang.ClassNotFoundException- Thrown if class was not found.
 
- 
asClassLoader
java.lang.ClassLoader asClassLoader()
Access to the classloader type.- Returns:
 - ClassLoader.
 
 
- 
doDefineClass
java.lang.Class<?> doDefineClass(byte[] classcode)
Defines a new class.- Parameters:
 classcode- Code of the class.- Returns:
 - The generated class.
 
 
- 
doDefineClass
java.lang.Class<?> doDefineClass(java.lang.String name, byte[] b, int off, int len)Exposes the defineClass() method. 
- 
doDefineClass
java.lang.Class<?> doDefineClass(java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectiondomain)Exposes the defineClass() method. 
- 
doDefineClassInParent
java.lang.Class<?> doDefineClassInParent(java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectiondomain)Directly injects the class into the parent classloader. 
 - 
 
 -