public static interface ClassInjector.UsingJna.Dispatcher.Jvm
extends com.sun.jna.Library
Modifier and Type | Method and Description |
---|---|
Class<?> |
JVM_DefineClass(com.sun.jna.JNIEnv env,
String name,
ClassLoader classLoader,
byte[] binaryRepresentation,
int length,
ProtectionDomain protectionDomain)
Defines a new class into a given class loader.
|
Class<?> JVM_DefineClass(com.sun.jna.JNIEnv env, String name, ClassLoader classLoader, byte[] binaryRepresentation, int length, ProtectionDomain protectionDomain) throws com.sun.jna.LastErrorException
env
- The JNI environment.name
- The internal name of the class.classLoader
- The class loader to inject into or null
if injecting into the bootstrap loader.binaryRepresentation
- The class's binary representation.length
- The length of the class's binary representation.protectionDomain
- The protection domain or null
if no explicit protection domain should be used.com.sun.jna.LastErrorException
- If an error occurs during injection.Copyright © 2014–2021. All rights reserved.