protected static interface ClassInjector.UsingJna.Dispatcher
Modifier and Type | Interface and Description |
---|---|
static class |
ClassInjector.UsingJna.Dispatcher.CreationAction
An action for creating a JNA dispatcher.
|
static class |
ClassInjector.UsingJna.Dispatcher.Enabled
An enabled dispatcher for JNA-based class injection.
|
static interface |
ClassInjector.UsingJna.Dispatcher.Jvm
A JNA dispatcher for the JVM's JVM_DefineClass method.
|
static class |
ClassInjector.UsingJna.Dispatcher.Unavailable
An unavailable dispatcher for JNA-based class injection.
|
static class |
ClassInjector.UsingJna.Dispatcher.Windows32BitFunctionMapper
A mapper for 32-bit Windows functions where names are defined with different convention.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
defineClass(ClassLoader classLoader,
String name,
byte[] binaryRepresentation,
ProtectionDomain protectionDomain)
Defines a class.
|
boolean |
isAvailable()
Checks if this dispatcher is available for use.
|
boolean isAvailable()
true
if this dispatcher is available for use.Class<?> defineClass(@MaybeNull ClassLoader classLoader, String name, byte[] binaryRepresentation, @MaybeNull ProtectionDomain protectionDomain)
classLoader
- The class loader or null
if a class should be injected into the bootstrap loader.name
- The class's name.binaryRepresentation
- The class's class file.protectionDomain
- The protection domain to use or null
if no protection domain should be used.Copyright © 2014–2023. All rights reserved.