cglib/src/main/java/net/sf/cglib/proxy/Enhancer.java
public void setCallbacks(Callback[] callbacks) {
        if (callbacks != null && callbacks.length == 0) {
            throw new IllegalArgumentException("Array cannot be empty");
        }
        this.callbacks = callbacks;
    }
public void setCallbacks(Callback[] callbacks) {
        if (callbacks != null && callbacks.length == 0) {
            throw new IllegalArgumentException("Array cannot be empty");
        }
        this.callbacks = callbacks;
    }
Set the array of callbacks to use.
Ignored if you use {@link #createClass}.
You must use a {@link CallbackFilter} to specify the index into this
array for each method in the proxied class.
@param callbacks the callback array
@see #setCallbackFilter
@see #setCallback