ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/core/ConfigurationServant.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/core/ConfigurationServant.java (file contents):
Revision 1.1 by ajm, Wed Nov 8 21:24:33 2000 UTC vs.
Revision 1.2 by tdb, Thu Nov 9 03:29:13 2000 UTC

# Line 40 | Line 40 | class ConfigurationServant extends ConfigurationPOA {
40       *
41       * @param propertiesStream an InputStream connected to the configuration
42       */
43 <    ConfigurationServant(File configurationFile) {
44 <        System.out.println(this.toString() + " - created.");
43 >    ConfigurationServant(File configurationFile, Logger logRef) {
44 >        _logRef = logRef;
45 >        _logRef.write(this.toString(), "created");
46          try {
47              InputStream configurationStream = new FileInputStream(configurationFile);
48 <            properties.load(configurationStream);
48 >            _properties.load(configurationStream);
49          } catch (Exception e) {
50              // ****************************************
51              // either IOException from the .load() or
# Line 63 | Line 64 | class ConfigurationServant extends ConfigurationPOA {
64       * @param key the key the value of which is wanted
65       */
66      public String getProperty(String key) {
67 <        return properties.getProperty(key);
67 >        return _properties.getProperty(key);
68      }
69      
70      /**
# Line 85 | Line 86 | class ConfigurationServant extends ConfigurationPOA {
86      /**
87       * The properties object that this class provides a CORBA interface to
88       */
89 <    private Properties properties = new Properties();
89 >    private Properties _properties = new Properties();
90 >
91 >    /**
92 >     * Reference to a Logger
93 >     */
94 >    private Logger _logRef;
95  
96   //---STATIC ATTRIBUTES---
97  
98 < }
98 > }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines