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