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.Unavailable
An unavailable dispatcher for JNA-based class injection.
|
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(ClassLoader classLoader, String name, byte[] binaryRepresentation, 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.