cglib/src/main/java/net/sf/cglib/proxy/Enhancer.java
public static Object create(Class superclass, Class interfaces[], Callback callback) {
        Enhancer e = new Enhancer();
        e.setSuperclass(superclass);
        e.setInterfaces(interfaces);
        e.setCallback(callback);
        return e.create();
    }
public static Object create(Class superclass, Class interfaces[], Callback callback) {
        Enhancer e = new Enhancer();
        e.setSuperclass(superclass);
        e.setInterfaces(interfaces);
        e.setCallback(callback);
        return e.create();
    }
Helper method to create an intercepted object.
For finer control over the generated instance, use a new instance of <code>Enhancer</code>
instead of this static method.
@param superclass class to extend or interface to implement
@param interfaces array of interfaces to implement, or null
@param callback the callback to use for all methods