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 |
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 |
|
/** |
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 |
> |
} |