com.ptc.windchill.esi.map
Class ESIMapManager

java.lang.Object
  extended bycom.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


Field Summary
private static ESIMapManager _instance
           
private static String CLASSNAME
           
private  Hashtable maps
           
private static String RESOURCE
           
private static Object singletonLock
           
private  TaskHelper taskHelper
           
 
Constructor Summary
protected ESIMapManager()
          Hide the constructor to enforce the singleton pattern.
 
Method Summary
 ESIMap getMap(String name)
          Returns the ESIMap identified by the name argument.
static ESIMapManager instance()
          Get the value of the _instance attribute.
private static void setSingleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ESIMapManager

protected ESIMapManager()
Hide the constructor to enforce the singleton pattern.

Supported API: false

Method Detail

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()