protected static interface ClassInjector.UsingUnsafe.Dispatcher
sun.misc.Unsafe
or jdk.internal.misc.Unsafe
.Modifier and Type | Interface and Description |
---|---|
static class |
ClassInjector.UsingUnsafe.Dispatcher.CreationAction
A privileged action for creating a dispatcher.
|
static class |
ClassInjector.UsingUnsafe.Dispatcher.Enabled
An enabled dispatcher.
|
static interface |
ClassInjector.UsingUnsafe.Dispatcher.Initializable
A class injection dispatcher that is not yet initialized.
|
static class |
ClassInjector.UsingUnsafe.Dispatcher.Unavailable
A disabled dispatcher.
|
Modifier and Type | Method and Description |
---|---|
Class<?> |
defineClass(ClassLoader classLoader,
String name,
byte[] binaryRepresentation,
ProtectionDomain protectionDomain)
Defines a class.
|
Class<?> defineClass(@MaybeNull ClassLoader classLoader, String name, byte[] binaryRepresentation, @MaybeNull ProtectionDomain protectionDomain)
classLoader
- 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–2025. All rights reserved.