KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > ubik > rmi > server > Config


1 package org.sapia.ubik.rmi.server;
2
3 import org.sapia.ubik.net.Connection;
4 import org.sapia.ubik.net.ServerAddress;
5
6
7 /**
8  * @author Yanick Duchesne
9  * <dl>
10  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
11  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
12  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
13  * </dl>
14  */

15 public class Config {
16   private ServerAddress _addr;
17   private Connection _conn;
18
19   public Config(ServerAddress addr, Connection conn) {
20     _addr = addr;
21     _conn = conn;
22   }
23
24   public ServerAddress getServerAddress() {
25     return _addr;
26   }
27
28   public Connection getConnection() {
29     return _conn;
30   }
31 }
32
Popular Tags