
package org.apache.cassandra.distributed.api;

public interface IClassTransformer {

    /**
     * Modify the bytecode of the provided class. Provides the original bytecode and the fully qualified name of the class.
     * Note, bytecode may be null indicating the class definition could not be found. In this case a synthetic definition
     * may be returned, or null.
     */
    byte[] transform(String name, byte[] bytecode);

    default IClassTransformer initialise() { return this; }
}
