@HashCodeAndEqualsPlugin.Enhance public static class ClassInjector.UsingUnsafe.Dispatcher.Unavailable 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  | Unavailable(String message)Creates a disabled 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. | 
protected Unavailable(String message)
message - The reason why this dispatcher is not available.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(@MaybeNull ClassLoader classLoader, String name, byte[] binaryRepresentation, @MaybeNull 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–2024. All rights reserved.