接口 Enhancer

    • 方法详细资料

      • enhance

        byte[] enhance​(String className,
                       byte[] originalBytes)
                throws EnhancementException
        Performs the enhancement. It is possible to invoke this method concurrently, but when doing so make sure no two enhancement tasks are invoked on the same class in parallel: the Enhancer implementations are not required to guard against this.
        参数:
        className - The name of the class whose bytecode is being enhanced.
        originalBytes - The class's original (pre-enhancement) byte code
        返回:
        The enhanced bytecode. If the original bytes are not enhanced, null is returned.
        抛出:
        EnhancementException - Indicates a problem performing the enhancement