Package net.bytebuddy.dynamic.loading
Interface ClassInjector.UsingUnsafe.Dispatcher
-
- All Known Implementing Classes:
ClassInjector.UsingUnsafe.Dispatcher.Enabled
,ClassInjector.UsingUnsafe.Dispatcher.Unavailable
- Enclosing class:
- ClassInjector.UsingUnsafe
protected static interface ClassInjector.UsingUnsafe.Dispatcher
A dispatcher for usingsun.misc.Unsafe
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface 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.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Class<?>
defineClass(java.lang.ClassLoader classLoader, java.lang.String name, byte[] binaryRepresentation, java.security.ProtectionDomain protectionDomain)
Defines a class.
-
-
-
Method Detail
-
defineClass
java.lang.Class<?> defineClass(java.lang.ClassLoader classLoader, java.lang.String name, byte[] binaryRepresentation, java.security.ProtectionDomain protectionDomain)
Defines a class.- Parameters:
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.- Returns:
- The defined class.
-
-