@HashCodeAndEqualsPlugin.Enhance public static class ClassInjector.UsingJna.Dispatcher.Unavailable extends Object implements ClassInjector.UsingJna.Dispatcher
ClassInjector.UsingJna.Dispatcher.CreationAction, ClassInjector.UsingJna.Dispatcher.Enabled, ClassInjector.UsingJna.Dispatcher.Jvm, ClassInjector.UsingJna.Dispatcher.Unavailable, ClassInjector.UsingJna.Dispatcher.Windows32BitFunctionMapper| Modifier | Constructor and Description |
|---|---|
protected |
Unavailable(String error)
Creates a new unavailable JNA-based class injector.
|
| 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.
|
protected Unavailable(String error)
error - The exception's error message when attempting to resolve the JNA dispatcher.public boolean isAvailable()
isAvailable in interface ClassInjector.UsingJna.Dispatchertrue if this dispatcher is available for use.public Class<?> defineClass(@MaybeNull ClassLoader classLoader, String name, byte[] binaryRepresentation, @MaybeNull ProtectionDomain protectionDomain)
defineClass in interface ClassInjector.UsingJna.DispatcherclassLoader - 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.