Interface ClassInjector.UsingUnsafe.Dispatcher

    • Method Detail

      • defineClass

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