Example usage for org.springframework.remoting.caucho HessianProxyFactoryBean setServiceInterface

List of usage examples for org.springframework.remoting.caucho HessianProxyFactoryBean setServiceInterface

Introduction

In this page you can find the example usage for org.springframework.remoting.caucho HessianProxyFactoryBean setServiceInterface.

Prototype

public void setServiceInterface(Class<?> serviceInterface) 

Source Link

Document

Set the interface of the service to access.

Usage

From source file:org.jdal.remoting.caucho.HessianRemoteReference.java

public RemoteClient createRemoteClient() {
    HessianProxyFactoryBean factoryBean = new HessianProxyFactoryBean();
    factoryBean.setServiceInterface(getServiceInterface());
    factoryBean.setServiceUrl(getServiceUrl());

    return (RemoteClient) factoryBean.getObject();
}