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

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

Introduction

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

Prototype

public Class<?> getServiceInterface() 

Source Link

Document

Return the interface of the service to export.

Usage

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

@Override
public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
    if (isService(bean, beanName)) {
        final String relativeServiceAddress = getPublishInterface(bean, beanName).getCanonicalName();

        final HessianServiceExporter hessianServiceExporter = exportService(bean, relativeServiceAddress);
        registerStrategy.registerService(hessianServiceExporter.getServiceInterface().getCanonicalName(),
                address + relativeServiceAddress);
        Object previouslyRegistered = registeredServices.put(beanName, bean);
        assert previouslyRegistered == null;
        LOGGER.info("Bean {} published as a service: {}", bean, relativeServiceAddress);
    }//from  w  w  w.j ava 2 s .co  m
    return bean;
}