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