KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tctest > spring > integrationtests > framework > RemoteService


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

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 JavaDoc remoteName;
11   private final Class JavaDoc interfaceType;
12   private final String JavaDoc beanName;
13   private final Class JavaDoc exporterType;
14
15   public RemoteService(String JavaDoc remoteName, String JavaDoc beanName, Class JavaDoc interfaceType) {
16     this(RmiServiceExporter.class, remoteName, beanName, interfaceType);
17   }
18
19   public RemoteService(Class JavaDoc exporterType, String JavaDoc remoteName, String JavaDoc beanName, Class JavaDoc interfaceType) {
20     this.exporterType = exporterType;
21     this.remoteName = remoteName;
22     this.beanName = beanName;
23     this.interfaceType = interfaceType;
24   }
25
26   public String JavaDoc getBeanName() {
27     return beanName;
28   }
29
30   public Class JavaDoc getInterfaceType() {
31     return interfaceType;
32   }
33
34   public String JavaDoc getRemoteName() {
35     return remoteName;
36   }
37
38   public Class JavaDoc getExporterType() {
39     return exporterType;
40   }
41
42 }
43
Popular Tags