KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > sync4j > server > config > ServerConfiguration


1 /**
2  * Copyright (C) 2003-2005 Funambol
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18
19 package sync4j.server.config;
20
21 import sync4j.framework.core.DevInf;
22
23 import sync4j.server.config.EngineConfiguration;
24
25
26
27 /**
28  *
29  * This class is just a container of SyncServer configuration.
30  *
31  * @author Stefano Fornari @ Funambol
32  */

33 public class ServerConfiguration {
34     
35     // ------------------------------------------------------------ Private data
36

37     /**
38      * The engine configuration object
39      */

40     private EngineConfiguration engineConfiguration;
41     
42     /**
43      * The server's device info object
44      */

45     private DevInf serverInfo;
46
47     // ---------------------------------------------------------- Public methods
48

49     /**
50      * Getter for property serverInfo.
51      * @return Value of property serverInfo.
52      */

53     public DevInf getServerInfo() {
54         return serverInfo;
55     }
56     
57     /**
58      * Setter for property serverInfo.
59      * @param serverInfo New value of property serverInfo.
60      */

61     public void setServerInfo(DevInf serverInfo) {
62         this.serverInfo = serverInfo;
63     }
64     
65         
66     /**
67      * Getter for property engineConfiguration.
68      * @return Value of property engineConfiguration.
69      */

70     public EngineConfiguration getEngineConfiguration() {
71         return engineConfiguration;
72     }
73     
74     /**
75      * Setter for property engineConfiguration.
76      * @param engineConfiguration New value of property engineConfiguration.
77      */

78     public void setEngineConfiguration(EngineConfiguration engineConfiguration) {
79         this.engineConfiguration = engineConfiguration;
80     }
81     
82 }
83
Popular Tags