@HashCodeAndEqualsPlugin.Enhance public static class ClassInjector.UsingUnsafe.Dispatcher.Enabled extends Object implements ClassInjector.UsingUnsafe.Dispatcher, ClassInjector.UsingUnsafe.Dispatcher.Initializable
ClassInjector.UsingUnsafe.Dispatcher.CreationAction, ClassInjector.UsingUnsafe.Dispatcher.Enabled, ClassInjector.UsingUnsafe.Dispatcher.Initializable, ClassInjector.UsingUnsafe.Dispatcher.Unavailable| Modifier | Constructor and Description | 
|---|---|
| protected  | Enabled(Object unsafe,
       Method defineClass)Creates an enabled dispatcher. | 
| Modifier and Type | Method and Description | 
|---|---|
| Class<?> | defineClass(ClassLoader classLoader,
           String name,
           byte[] binaryRepresentation,
           ProtectionDomain protectionDomain)Defines a class. | 
| ClassInjector.UsingUnsafe.Dispatcher | initialize()Initializes the dispatcher. | 
| boolean | isAvailable()Checks if unsafe class injection is available on the current VM. | 
public boolean isAvailable()
isAvailable in interface ClassInjector.UsingUnsafe.Dispatcher.Initializabletrue if unsafe class injection is available.public ClassInjector.UsingUnsafe.Dispatcher initialize()
initialize in interface ClassInjector.UsingUnsafe.Dispatcher.Initializablepublic Class<?> defineClass(ClassLoader classLoader, String name, byte[] binaryRepresentation, ProtectionDomain protectionDomain)
defineClass in interface ClassInjector.UsingUnsafe.DispatcherclassLoader - The class loader to inject the class into.name - The type's name.binaryRepresentation - The type's binary representation.protectionDomain - The type's protection domain.Copyright © 2014–2021. All rights reserved.