Interface ClassInjector.UsingJna.Dispatcher

All Known Implementing Classes:
ClassInjector.UsingJna.Dispatcher.Enabled, ClassInjector.UsingJna.Dispatcher.Unavailable
Enclosing class:
ClassInjector.UsingJna

protected static interface ClassInjector.UsingJna.Dispatcher
A dispatcher for JNA class injection.
  • Method Details

    • isAvailable

      boolean isAvailable()
      Checks if this dispatcher is available for use.
      Returns:
      true if this dispatcher is available for use.
    • defineClass

      Class<?> defineClass(@MaybeNull ClassLoader classLoader, String name, byte[] binaryRepresentation, @MaybeNull ProtectionDomain protectionDomain)
      Defines a class.
      Parameters:
      classLoader - The class loader or null if a class should be injected into the bootstrap loader.
      name - The class's name.
      binaryRepresentation - The class's class file.
      protectionDomain - The protection domain to use or null if no protection domain should be used.
      Returns:
      The class that was defined.