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.DispatcherA dispatcher for usingsun.misc.Unsafeorjdk.internal.misc.Unsafe.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classClassInjector.UsingUnsafe.Dispatcher.CreationActionA privileged action for creating a dispatcher.static classClassInjector.UsingUnsafe.Dispatcher.EnabledAn enabled dispatcher.static interfaceClassInjector.UsingUnsafe.Dispatcher.InitializableA class injection dispatcher that is not yet initialized.static classClassInjector.UsingUnsafe.Dispatcher.UnavailableA 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(@MaybeNull java.lang.ClassLoader classLoader, java.lang.String name, byte[] binaryRepresentation, @MaybeNull 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.
-
-