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

Comparing projects/cms/source/util/uk/org/iscream/cms/util/ReferenceManager.java (file contents):
Revision 1.7 by ajm, Tue Dec 12 18:24:53 2000 UTC vs.
Revision 1.8 by ajm, Wed Dec 13 13:42:50 2000 UTC

# Line 33 | Line 33 | public class ReferenceManager {
33   //---STATIC METHODS---
34  
35      /**
36     * TO BE REMOVED ONCE CODE TIDY HAS COMPLETED!
37     * @deprecated should no longer use this method to construct a refman
38     */
39    public static ReferenceManager init(String[] args, String name) throws AlreadyInitialisedException {
40        System.out.println("LEGACY CALL - SORT THIS OUT! name=" + name);
41        if (_instance != null) {
42            throw new AlreadyInitialisedException("init has already been called");
43        }
44        _instance = new ReferenceManager(args, name);
45        return _instance;
46    }
47    
48    /**
36       * This returns a reference to the single instance of the
37       * ReferenceManager.
38       *
# Line 70 | Line 57 | public class ReferenceManager {
57      private ReferenceManager() {
58          _orb = ORB.init(new String[] {}, null);
59      }
73    
74    /**
75     * TO BE REMOVED ONCE CODE TIDY HAS COMPLETED!
76     * @deprecated should no longer use this method to construct a refman
77     */
78    private ReferenceManager(String[] args, String name) {
79        System.out.println("LEGACY CALL - SORT THIS OUT! name=" + name);
80        _orb = ORB.init(args, null);
81        _name = name;
82    }
60  
61   //---PUBLIC METHODS---
62  
# Line 279 | Line 256 | public class ReferenceManager {
256          }
257          return _logger;
258      }
282
283    /**
284     * Sets the reference to the name
285     * TO BE REMOVED ONCE CODE TIDY HAS COMPLETED!
286     * @deprecated not stored in the refman any more - see Template.class
287     * @param the new name
288     */
289    public void setName(String name) {
290        System.out.println("LEGACY CALL - SORT THIS OUT! name=" + name);
291        _name = name;
292    }
259      
294    /**
295     * Returns a reference to the name
296     * TO BE REMOVED ONCE CODE TIDY HAS COMPLETED!
297     * @deprecated not stored in the refman any more - see Template.class
298     * @return the reference this class holds
299     */
300    public String getName() {
301        System.out.println("LEGACY CALL - SORT THIS OUT! name=" + _name);
302        return _name;
303    }
304
260   //---ATTRIBUTES---
261      
262      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines