Interface Enhancer

  • All Known Implementing Classes:

    public interface Enhancer
    Class responsible for performing enhancement.
    • Method Detail

      • 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