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.2 by tdb, Thu Nov 9 03:29:13 2000 UTC vs.
Revision 1.3 by tdb, Mon Nov 13 16:11:03 2000 UTC

# Line 41 | Line 41 | class ConfigurationServant extends ConfigurationPOA {
41       * @param propertiesStream an InputStream connected to the configuration
42       */
43      ConfigurationServant(File configurationFile, Logger logRef) {
44 +        _lastModified = configurationFile.lastModified();
45 +        
46          _logRef = logRef;
47 <        _logRef.write(this.toString(), "created");
47 >        _logRef.write(this.toString(), "created - last modified:" + getLastModified());
48 >        
49          try {
50              InputStream configurationStream = new FileInputStream(configurationFile);
51              _properties.load(configurationStream);
# Line 81 | Line 84 | class ConfigurationServant extends ConfigurationPOA {
84  
85   //---ACCESSOR/MUTATOR METHODS---
86  
87 +    /**
88 +     * Returns the date stamp of the configuration file
89 +     * this object is using.
90 +     *
91 +     * @return the last modified time for the file
92 +     */
93 +    public long getLastModified() {
94 +        return _lastModified;
95 +    }
96 +
97   //---ATTRIBUTES---
98  
99      /**
# Line 93 | Line 106 | class ConfigurationServant extends ConfigurationPOA {
106       */
107      private Logger _logRef;
108  
109 +    /**
110 +     * The date stamp of the configuration file
111 +     * this object is using
112 +     */
113 +    private long _lastModified;
114 +    
115   //---STATIC ATTRIBUTES---
116  
117   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines