cglib/src/main/java/net/sf/cglib/proxy/Enhancer.java
public Object create(Class[] argumentTypes, Object[] arguments) {
        classOnly = false;
        if (argumentTypes == null || arguments == null || argumentTypes.length != arguments.length) {
            throw new IllegalArgumentException("Arguments must be non-null and of equal length");
        }
        this.argumentTypes = argumentTypes;
        this.arguments = arguments;
        return createHelper();
    }
public Object create(Class[] argumentTypes, Object[] arguments) {
        classOnly = false;
        if (argumentTypes == null || arguments == null || argumentTypes.length != arguments.length) {
            throw new IllegalArgumentException("Arguments must be non-null and of equal length");
        }
        this.argumentTypes = argumentTypes;
        this.arguments = arguments;
        return createHelper();
    }
public Object create ( Class [ ] argumentTypes , Object [ ] arguments ) { classOnly = false ; if ( argumentTypes == null || arguments == null || argumentTypes . length != arguments . length ) { throw new IllegalArgumentException ( "Arguments must be non-null and of equal length" ) ; } this . argumentTypes = argumentTypes ; this . arguments = arguments ; return createHelper ( ) ; }
Generate a new class if necessary and uses the specified
callbacks (if any) to create a new object instance.
Uses the constructor of the superclass matching the <code>argumentTypes</code>
parameter, with the given arguments.
@param argumentTypes constructor signature
@param arguments compatible wrapped arguments to pass to constructor
@return a new instance
Generate a new class if necessary and uses the specified callbacks ( if any ) to create a new object instance . Uses the constructor of the superclass matching the <code > argumentTypes< / code > parameter with the given arguments .