View Javadoc
1   /*
2    * This program is free software; you can redistribute it and/or
3    * modify it under the terms of the GNU General Public License
4    * as published by the Free Software Foundation; either version 2
5    * of the License, or (at your option) any later version.
6    *
7    * This program is distributed in the hope that it will be useful,
8    * but WITHOUT ANY WARRANTY; without even the implied warranty of
9    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10   * GNU General Public License for more details.
11   * 
12   * Full GNU GPL license terms : http://www.fsf.org/licenses/gpl.txt
13   * 
14   * Project : Iky
15   * Author : mchaplin@users.sourceforge.net
16   * 
17   * Created on Apr 25, 2004
18   * 
19   */
20  package net.mchaplin.ioc.rmi;
21  
22  import java.util.ArrayList;
23  
24  import net.mchaplin.ioc.configuration.DefaultConfiguration;
25  
26  
27  
28  /***
29   * Hold configuration date for an RmiServer
30   * instance.
31   * 
32   * @author mchaplin@users.sourceforge.net
33   *
34   */
35  public class RmiServerConfiguration extends DefaultConfiguration {
36      
37      private ArrayList rmiServices = null;
38      private String hostAddress = null; //"rmi://<machine-name>:<port-number>/";
39      private int hostPort = 0;
40         
41      
42      public RmiServerConfiguration() {
43      }
44   
45      /***
46       * @return Returns the rmiServices.
47       */
48      public ArrayList getRmiServices() {
49          return rmiServices;
50      }
51      /***
52       * @param rmiServices The rmiServices to set.
53       */
54      public void setRmiServices(ArrayList rmiServices) {
55          this.rmiServices = rmiServices;
56      }
57      /***
58       * @return Returns the hostAddress.
59       */
60      public String getHostAddress() {
61          return hostAddress;
62      }
63      /***
64       * @param hostAddress The hostAddress to set.
65       */
66      public void setHostAddress(String hostAddress) {
67          this.hostAddress = hostAddress;
68      }
69  
70      /***
71       * @return Returns the hostPort.
72       */
73      public int getHostPort() {
74          return hostPort;
75      }
76      /***
77       * @param hostPort The hostPort to set.
78       */
79      public void setHostPort(int hostPort) {
80          this.hostPort = hostPort;
81      }
82  }