• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java HessianRemoteObject类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中com.caucho.hessian.io.HessianRemoteObject的典型用法代码示例。如果您正苦于以下问题:Java HessianRemoteObject类的具体用法?Java HessianRemoteObject怎么用?Java HessianRemoteObject使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

HessianRemoteObject类属于com.caucho.hessian.io包,在下文中一共展示了HessianRemoteObject类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: create

点赞 2

import com.caucho.hessian.io.HessianRemoteObject; //导入依赖的package包/类
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 HessianProxyWrapper(url, this, api);

	return Proxy.newProxyInstance(loader, new Class[] { api,
			HessianRemoteObject.class }, handler);
}
 

开发者ID:flychao88,
项目名称:dubbocloud,
代码行数:12,
代码来源:HessianProxyFactoryWrapper.java

示例2: create

点赞 2

import com.caucho.hessian.io.HessianRemoteObject; //导入依赖的package包/类
@Override
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 = new HessianProxy(url, this, api);

	return Proxy.newProxyInstance(loader, new Class[] { api, HessianRemoteObject.class }, handler);
}
 

开发者ID:pugwoo,
项目名称:hessoa,
代码行数:11,
代码来源:HessianProxyFactory.java

示例3: createForHeaderMode

点赞 2

import com.caucho.hessian.io.HessianRemoteObject; //导入依赖的package包/类
public Object createForHeaderMode(Class<?> api, String url) throws MalformedURLException {
	if (api == null) {
		throw new NullPointerException("api must not be null for HessianProxyFactory.create()");
	}
	GreenStepHessianProxy handler = new GreenStepHessianProxy(new URL(url), this, api);
	handler.putHeader(this.context);
	return Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(), new Class[] { api, HessianRemoteObject.class }, handler);
}
 

开发者ID:billchen198318,
项目名称:bamboobsc,
代码行数:9,
代码来源:GreenStepHessianProxyFactory.java

示例4: create

点赞 2

import com.caucho.hessian.io.HessianRemoteObject; //导入依赖的package包/类
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 RatelHessianProxy(url, this, api);

    return Proxy.newProxyInstance(loader, new Class[]{api, HessianRemoteObject.class}, handler);
}
 

开发者ID:PayU-Tech,
项目名称:Ratel,
代码行数:11,
代码来源:RatelHessianProxyFactory.java

示例5: create

点赞 1

import com.caucho.hessian.io.HessianRemoteObject; //导入依赖的package包/类
/**
 * 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.
 */
public Object create(Class api, String url)
  throws MalformedURLException
{
  HessianProxy handler = new HessianProxy(this, new URL(url));

  return Proxy.newProxyInstance(api.getClassLoader(),
		  new Class[] { api,
                                              HessianRemoteObject.class },
                                handler);
}
 

开发者ID:parabuild-ci,
项目名称:parabuild-ci,
代码行数:25,
代码来源:HessianProxyFactory.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)