Interface ClassInjector.UsingJna.Dispatcher

    • Method Detail

      • isAvailable

        boolean isAvailable()
        Checks if this dispatcher is available for use.
        Returns:
        true if this dispatcher is available for use.
      • 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 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.