1 4 package com.tctest.spring.integrationtests.framework; 5 6 import org.springframework.remoting.rmi.RmiServiceExporter; 7 8 public class RemoteService { 9 10 private final String remoteName; 11 private final Class interfaceType; 12 private final String beanName; 13 private final Class exporterType; 14 15 public RemoteService(String remoteName, String beanName, Class interfaceType) { 16 this(RmiServiceExporter.class, remoteName, beanName, interfaceType); 17 } 18 19 public RemoteService(Class exporterType, String remoteName, String beanName, Class interfaceType) { 20 this.exporterType = exporterType; 21 this.remoteName = remoteName; 22 this.beanName = beanName; 23 this.interfaceType = interfaceType; 24 } 25 26 public String getBeanName() { 27 return beanName; 28 } 29 30 public Class getInterfaceType() { 31 return interfaceType; 32 } 33 34 public String getRemoteName() { 35 return remoteName; 36 } 37 38 public Class getExporterType() { 39 return exporterType; 40 } 41 42 } 43 | Popular Tags |