接口 DefineClassStrategy


public interface DefineClassStrategy
define class strategy
从以下版本开始:
4.0
作者:
TODAY 2021/11/10 16:29
  • 方法详细资料

    • defineClass

      Class<?> defineClass(String className, ClassLoader classLoader, @Nullable ProtectionDomain domain, @Nullable Class<?> neighbor, byte[] classFile)
      define a class file to class
      参数:
      className - the name of the loaded class.
      neighbor - the class contained in the same package as the loaded class.
      classLoader - the class loader. It can be null if neighbor is not null and the JVM is Java 11 or later.
      domain - if it is null, a default domain is used.
      classFile - the bytecode for the loaded class.