List of usage examples for org.springframework.remoting.caucho HessianServiceExporter getServiceInterface
public Class<?> getServiceInterface()
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; }