本文整理汇总了Java中org.springframework.remoting.caucho.HessianProxyFactoryBean类的典型用法代码示例。如果您正苦于以下问题:Java HessianProxyFactoryBean类的具体用法?Java HessianProxyFactoryBean怎么用?Java HessianProxyFactoryBean使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
HessianProxyFactoryBean类属于org.springframework.remoting.caucho包,在下文中一共展示了HessianProxyFactoryBean类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getExporters
import org.springframework.remoting.caucho.HessianProxyFactoryBean; //导入依赖的package包/类
/**
* Get the list of proxy factory beans that need to be updated.
* @return Array of beans to update
*/
private Object[] getExporters() {
ApplicationContext appCtx = Application.instance().getApplicationContext();
List list = new Vector();
Class[] types = new Class[] {
HessianProxyFactoryBean.class,
BurlapProxyFactoryBean.class,
JaxRpcPortProxyFactoryBean.class
};
for( int i = 0; i < types.length; i++ ) {
Map map = appCtx.getBeansOfType(types[i], false, true);
Iterator iter = map.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry)iter.next();
String beanName = (String)entry.getKey();
if( beanName.startsWith("&") ) {
list.add(entry.getValue());
}
}
}
return list.toArray();
}
开发者ID:shevek,项目名称:spring-rich-client,代码行数:30,代码来源:RemotingSecurityConfigurer.java
示例2: scoringService
import org.springframework.remoting.caucho.HessianProxyFactoryBean; //导入依赖的package包/类
@Bean
public HessianProxyFactoryBean scoringService() {
HessianProxyFactoryBean scoringServiceClient = new HessianProxyFactoryBean();
scoringServiceClient.setServiceUrl(scoringServer + "ScoringService");
scoringServiceClient.setServiceInterface(ScoringService.class);
return scoringServiceClient;
}
开发者ID:mploed,项目名称:ddd-strategic-design-spring-boot,代码行数:8,代码来源:ScoringHessianConfiguration.java
示例3: helloClient
import org.springframework.remoting.caucho.HessianProxyFactoryBean; //导入依赖的package包/类
@Bean
public HessianProxyFactoryBean helloClient() {
HessianProxyFactoryBean factory = new HessianProxyFactoryBean();
factory.setServiceUrl("http://localhost:7000/HelloWorldService");
factory.setServiceInterface(HelloWorldService.class);
return factory;
}
开发者ID:oscm,项目名称:web,代码行数:8,代码来源:HessionConfig.java
示例4: userWsService
import org.springframework.remoting.caucho.HessianProxyFactoryBean; //导入依赖的package包/类
@Bean
public HessianProxyFactoryBean userWsService() {
HessianProxyFactoryBean factoryBean = new HessianProxyFactoryBean();
factoryBean.setServiceUrl(loginProperties.getAuthWsUrl() + "/user");
factoryBean.setServiceInterface(UserWsService.class);
return factoryBean;
}
开发者ID:easycodebox,项目名称:easycode,代码行数:8,代码来源:WsClientConfig.java
注:本文中的org.springframework.remoting.caucho.HessianProxyFactoryBean类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论