protected static interface ClassInjector.UsingUnsafe.Dispatcher
sun.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 |
---|---|
java.lang.Class<?> |
defineClass(java.lang.ClassLoader classLoader,
java.lang.String name,
byte[] binaryRepresentation,
java.security.ProtectionDomain protectionDomain)
Defines a class.
|
java.lang.Class<?> defineClass(java.lang.ClassLoader classLoader, java.lang.String name, byte[] binaryRepresentation, java.security.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.