java.lang.Object
io.smallrye.common.classloader.ClassDefiner

public class ClassDefiner extends Object
A utility to define classes within a target lookup.
  • Method Details

    • defineClass

      public static Class<?> defineClass(MethodHandles.Lookup lookup, Class<?> parent, String className, byte[] classBytes)
      Define a class.
      Parameters:
      lookup - the lookup of the class (must not be null)
      parent - the host class to define the new class to (must not be null)
      className - the name of the new class (must not be null)
      classBytes - the bytes of the new class (must not be null)
      Returns:
      the defined class (not null)