1 |
|
//---PACKAGE DECLARATION--- |
2 |
< |
package uk.ac.ukc.iscream.componentmanager; |
2 |
> |
package uk.org.iscream.cms.server.componentmanager; |
3 |
|
|
4 |
|
//---IMPORTS--- |
5 |
|
import org.omg.CORBA.ORB; |
6 |
|
import org.omg.CosNaming.*; |
7 |
|
import org.omg.PortableServer.*; |
8 |
< |
import uk.ac.ukc.iscream.core.*; |
9 |
< |
import uk.ac.ukc.iscream.util.*; |
8 |
> |
import uk.org.iscream.cms.server.core.*; |
9 |
> |
import uk.org.iscream.cms.server.util.*; |
10 |
|
|
11 |
|
/** |
12 |
|
* This class returns references for global system objects. |
42 |
|
* |
43 |
|
* @return a reference to the ReferenceManager |
44 |
|
*/ |
45 |
< |
public static ReferenceManager getInstance() { |
45 |
> |
public synchronized static ReferenceManager getInstance() { |
46 |
|
if (_instance == null) { |
47 |
|
_instance = new ReferenceManager(); |
48 |
|
} |
136 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
137 |
|
* method to provide clean logging (every class should have this). |
138 |
|
* |
139 |
< |
* This uses the uk.ac.ukc.iscream.util.NameFormat class |
139 |
> |
* This uses the uk.org.iscream.cms.server.util.NameFormat class |
140 |
|
* to format the toString() |
141 |
|
* |
142 |
|
* @return the name of this class and its CVS revision |
325 |
|
/** |
326 |
|
* A reference to the single instance of this class |
327 |
|
*/ |
328 |
< |
private static ReferenceManager _instance; |
328 |
> |
private static ReferenceManager _instance = null; |
329 |
|
} |