Interface IByteCodeClassLoader

All Known Implementing Classes:
ByteCodeClassLoader

public interface IByteCodeClassLoader
Interface for the byte code classloader implementations.
  • Method Details

    • loadClass

      Class<?> loadClass(String name) throws ClassNotFoundException
      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

      Class<?> doDefineClass(byte[] classcode)
      Defines a new class.
      Parameters:
      classcode - Code of the class.
      Returns:
      The generated class.
    • doDefineClass

      Class<?> doDefineClass(String name, byte[] b, int off, int len)
      Exposes the defineClass() method.
    • doDefineClass

      Class<?> doDefineClass(String name, byte[] b, int off, int len, ProtectionDomain protectiondomain)
      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.