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.14 by ajm, Tue Dec 12 18:26:52 2000 UTC vs.
Revision 1.19 by tdb, Wed Mar 14 23:25:29 2001 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.core;
2 > package uk.org.iscream.core;
3  
4   //---IMPORTS---
5 < import uk.ac.ukc.iscream.util.*;
5 > import uk.org.iscream.util.*;
6 > import uk.org.iscream.componentmanager.*;
7   import java.util.Properties;
8   import java.util.Date;
9   import java.text.DateFormat;
# Line 73 | Line 74 | class ConfigurationServant extends ConfigurationPOA {
74       * Overrides the {@link java.lang.Object#toString() Object.toString()}
75       * method to provide clean logging (every class should have this).
76       *
77 <     * This uses the uk.ac.ukc.iscream.util.FormatName class
77 >     * This uses the uk.org.iscream.util.FormatName class
78       * to format the toString()
79       *
80       * @return the name of this class and its CVS revision
# Line 84 | Line 85 | class ConfigurationServant extends ConfigurationPOA {
85              getClass().getName(),
86              REVISION);
87      }
88 +    
89 +    /**
90 +     * Unhooks this Configuration object from the ORB
91 +     */
92 +    public void disconnect() {
93 +        try {
94 +            byte[] oid = _refman.getRootPOA().servant_to_id(this);
95 +            _refman.getRootPOA().deactivate_object(oid);
96 +        } catch(Exception e) {
97 +            _logger.write(this.toString(), Logger.ERROR, "disconnect failed: "+e);
98 +        }
99 +    }
100 +        
101  
102   //---PRIVATE METHODS---
103  
# Line 130 | Line 144 | class ConfigurationServant extends ConfigurationPOA {
144       * system logger that is being used.
145       */
146      private Logger _logger = ReferenceManager.getInstance().getLogger();
147 +
148 +    /**
149 +     * A reference to the reference manager in use
150 +     */
151 +    private ReferenceManager _refman = ReferenceManager.getInstance();
152      
153      /**
154       * This is the friendly identifier of the

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines