01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.test.server.appserver.deployment;
05:
06: import org.springframework.remoting.rmi.RmiServiceExporter;
07:
08: public class RemoteService {
09:
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,
16: Class interfaceType) {
17: this (RmiServiceExporter.class, remoteName, beanName,
18: interfaceType);
19: }
20:
21: public RemoteService(Class exporterType, String remoteName,
22: String beanName, Class interfaceType) {
23: this .exporterType = exporterType;
24: this .remoteName = remoteName;
25: this .beanName = beanName;
26: this .interfaceType = interfaceType;
27: }
28:
29: public String getBeanName() {
30: return beanName;
31: }
32:
33: public Class getInterfaceType() {
34: return interfaceType;
35: }
36:
37: public String getRemoteName() {
38: return remoteName;
39: }
40:
41: public Class getExporterType() {
42: return exporterType;
43: }
44:
45: }
|