@HashCodeAndEqualsPlugin.Enhance public static class ClassInjector.UsingJna.Dispatcher.Enabled 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  | Enabled(ClassInjector.UsingJna.Dispatcher.Jvm jvm)Creates a new dispatcher for a JNI's class definition utilities. | 
| 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 Enabled(ClassInjector.UsingJna.Dispatcher.Jvm jvm)
jvm - The JNA-dispatcher to use for invoking JNI's class definition utilities.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.