KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > raptus > owxv3 > ConfigManagerIFace


1 /*
2  * eAdmin/OWX
3  * Copyright (C) 1996-2003 OWX-Project Team <owx-team@gmx.net>
4  */

5
6 /******************************** Package */
7 package com.raptus.owxv3;
8
9
10 /******************************** Imports */
11 import java.util.Hashtable JavaDoc;
12
13
14 /******************************** Raptus-Header */
15 /**
16  * This interface defines methods which each concrete ConfigManager must implement in
17  * order to be able to talk to the ConfigManager-singleton in the same uniform way.
18  *
19  *
20  * @see com.raptus.owxv3.ConfigManager ConfigManager
21  *
22  *
23  * <hr>
24  * <table width="100%" border="0">
25  * <tr>
26  * <td width="24%"><b>Filename</b></td><td width="76%">ConfigManagerIFace.java</td>
27  * </tr>
28  * <tr>
29  * <td width="24%"><b>Author</b></td><td width="76%">Pascal Mainini (pmainini@raptus.com)</td>
30  * </tr>
31  * <tr>
32  * <td width="24%"><b>Date</b></td><td width="76%">27th of March 2001</td>
33  * </tr>
34  * </table>
35  * <hr>
36  * <table width="100%" border="0">
37  * <tr>
38  * <td width="24%"><b>Date / Author</b></td><td width="76%"><b>Changes</b></td>
39  * </tr>
40  * <tr>
41  * <td width="24%">2001-03-27</td><td width="76%">created</td>
42  * </tr>
43  * </table>
44  * <hr>
45  */

46 public interface ConfigManagerIFace
47 {
48     /**
49      * This Method is used to initialize.
50      *
51      * @param hash a hashtable with additional configuration-info.
52      * @return true if initialising was successful, false if not.
53      */

54     public boolean initialize(Hashtable JavaDoc hash) ;
55
56     /**
57      * When calling this method, the configmanager is forced to reread/requery its
58      * configuration-data
59      */

60     public void refresh();
61
62     /**
63      * This method saves the Configuration-object specified.
64      *
65      * @param cfg Config to save
66      * @return true if successful, false if not.
67      */

68     public boolean saveConfiguration(Configuration cfg);
69
70     /**
71      * This method is used to get a storage-independent object which allows to
72      * access the configuration,
73      *
74      * @return An initialised Configuration-object
75      */

76     public Configuration getConfiguration() ;
77 }
78
Popular Tags