Interface ClassInjector.UsingUnsafe.Dispatcher

    • 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.