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 using sun.misc.Unsafe or jdk.internal.misc.Unsafe.
  • Method Details

    • defineClass

      Class<?> defineClass(@MaybeNull ClassLoader classLoader, String name, byte[] binaryRepresentation, @MaybeNull 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.