java.lang.Object
io.smallrye.common.classloader.ClassDefiner
A utility to define classes within a target lookup.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?> defineClass(MethodHandles.Lookup lookup, Class<?> parent, String className, byte[] classBytes) Define a class.
-
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 benull)parent- the host class to define the new class to (must not benull)className- the name of the new class (must not benull)classBytes- the bytes of the new class (must not benull)- Returns:
- the defined class (not
null)
-