KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nightlabs > config > ConfigInclude


1 /* ************************************************************************** *
2  * Copyright (C) 2004 NightLabs GmbH, Marco Schulze *
3  * All rights reserved. *
4  * http://www.NightLabs.de *
5  * *
6  * This program and the accompanying materials are free software; you can re- *
7  * distribute it and/or modify it under the terms of the GNU General Public *
8  * License as published by the Free Software Foundation; either ver 2 of the *
9  * License, or any later version. *
10  * *
11  * This module is distributed in the hope that it will be useful, but WITHOUT *
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FIT- *
13  * NESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more *
14  * details. *
15  * *
16  * You should have received a copy of the GNU General Public License along *
17  * with this module; if not, write to the Free Software Foundation, Inc.: *
18  * 59 Temple Place, Suite 330 *
19  * Boston MA 02111-1307 *
20  * USA *
21  * *
22  * Or get it online: *
23  * http://www.opensource.org/licenses/gpl-license.php *
24  * *
25  * In case, you want to use this module or parts of it in a proprietary pro- *
26  * ject, you can purchase it under the NightLabs Commercial License. Please *
27  * contact NightLabs GmbH under info AT nightlabs DOT com for more infos or *
28  * visit http://www.NightLabs.com *
29  * ************************************************************************** */

30
31 package com.nightlabs.config;
32
33 /**
34  * A config module to store an externalized part
35  * of the configuration in multi-file-mode.
36  * @author Marco Schulze
37  * @author Marc Klinger
38  */

39 public class ConfigInclude extends ConfigModule
40 {
41   protected String JavaDoc includeClass;
42   private String JavaDoc includeFile;
43
44   public ConfigInclude()
45   {
46   }
47
48   public ConfigInclude(ConfigModule includeModule, String JavaDoc includeFile)
49   {
50     setIncludeClass(includeModule.getClass().getName());
51     setIncludeFile(includeFile);
52     super.setSearchClass(includeModule.getSearchClass());
53   }
54
55   public String JavaDoc getIncludeClass()
56   {
57     return this.includeClass;
58   }
59   public void setIncludeClass(String JavaDoc _includeClass)
60   {
61     this.includeClass = _includeClass;
62   }
63
64   public String JavaDoc getIncludeFile()
65   {
66     return this.includeFile;
67   }
68   public void setIncludeFile(String JavaDoc _includeFile)
69   {
70     this.includeFile = _includeFile;
71   }
72 }
Popular Tags