com.ptc.windchill.esi.map
Class ESIMapManager
java.lang.Object
com.ptc.windchill.esi.map.ESIMapManager
- public final class ESIMapManager
- extends Object
Finds the instance of ESIMap associated with a file name. Implements
the Singleton pattern to insure that only one instance is created in
a java virtual machine.
Supported API: true
Extendable: false
Constructor Summary |
protected |
ESIMapManager()
Hide the constructor to enforce the singleton pattern. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
_instance
private static ESIMapManager _instance
maps
private Hashtable maps
singletonLock
private static Object singletonLock
taskHelper
private TaskHelper taskHelper
ESIMapManager
protected ESIMapManager()
- Hide the constructor to enforce the singleton pattern.
Supported API: false
instance
public static final ESIMapManager instance()
- Get the value of the _instance attribute. If it's null, create an
instance and store it in the attribute before returning the result.
Supported API: true
- Returns:
- ESIMapManager
getMap
public final ESIMap getMap(String name)
throws ESIMapException
- Returns the ESIMap identified by the name argument. If there's an
entry in the maps Hashtable, return it. Othewise, create a new ESIMap,
store it in the table, and return the result.
Supported API: true
- Parameters:
name
- The file name of the map source file.
- Returns:
- ESIMap
- Throws:
ESIMapException
setSingleton
private static void setSingleton()