public Object create(Class<?> api, URL url, ClassLoader loader)
    {
        if (api == null)
            throw new NullPointerException("api must not be null for HessianProxyFactory.create()");
        InvocationHandler handler = null;

        handler = new HessianProxy(url, this, api);

        return Proxy.newProxyInstance(loader,
            new Class[] { api,
                    HessianRemoteObject.class },
            handler);
    }
public Object create ( Class < ? > api , URL url , ClassLoader loader ) { if ( api == null ) throw new NullPointerException ( "api must not be null for HessianProxyFactory.create()" ) ; InvocationHandler handler = null ; handler = new HessianProxy ( url , this , api ) ; return Proxy . newProxyInstance ( loader , new Class [ ] { api , HessianRemoteObject . class } , handler ) ; }
Creates a new proxy with the specified URL.  The returned object
is a proxy with the interface specified by api.

<pre>
String url = "http://localhost:8080/ejb/hello");
HelloHome hello = (HelloHome) factory.create(HelloHome.class, url);
</pre>

@param api the interface the proxy class needs to implement
@param url the URL where the client object is located.

@return a proxy to the object with the specified interface.