![JAR search and dependency download from the Maven repository](/logo.png)
com.github.antelopeframework.remoting.client.HessianProxyFactory Maven / Gradle / Ivy
The newest version!
package com.github.antelopeframework.remoting.client;
import java.lang.reflect.Proxy;
import java.net.URL;
import com.caucho.hessian.io.HessianRemoteObject;
import lombok.Setter;
public class HessianProxyFactory extends com.caucho.hessian.client.HessianProxyFactory {
@Setter
private String app;
public Object create(Class> api, URL url, ClassLoader loader) {
if (api == null)
throw new NullPointerException("api must not be null for HessianProxyFactory.create()");
HessianProxy hessianProxy = new HessianProxy(url, this, api);
hessianProxy.setApp(app);
return Proxy.newProxyInstance(loader, new Class[] { api, HessianRemoteObject.class }, hessianProxy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy