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

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

Introduction

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

Prototype

public void setServiceInterface(Class<?> serviceInterface) 

Source Link

Document

Set the interface of the service to export.

Usage

From source file:com.payu.ratel.register.ServiceRegisterPostProcessor.java

private HessianServiceExporter createHessianExporterService(Object bean) {
    HessianServiceExporter hessianServiceExporter = new RatelHessianServiceExporter();
    hessianServiceExporter.setService(decorateWithMonitoring(bean, getPublishInterface(bean)));
    hessianServiceExporter.setServiceInterface(getPublishInterface(bean));
    hessianServiceExporter.prepare();//from   ww w . j a v  a2  s .c  om
    return hessianServiceExporter;
}