cglib/src/main/java/net/sf/cglib/proxy/Enhancer.java
public static Object create(Class type, Callback callback) {
        Enhancer e = new Enhancer();
        e.setSuperclass(type);
        e.setCallback(callback);
        return e.create();
    }
public static Object create(Class type, Callback callback) {
        Enhancer e = new Enhancer();
        e.setSuperclass(type);
        e.setCallback(callback);
        return e.create();
    }
public static Object create ( Class type , Callback callback ) { Enhancer e = new Enhancer ( ) ; e . setSuperclass ( type ) ; 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 type class to extend or interface to implement
@param callback the callback to use for all methods
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 .