de.uni_paderborn.fujaba.basic
Class ClassMap

java.lang.Object
  extended byde.uni_paderborn.fujaba.basic.ClassMap

public class ClassMap
extends java.lang.Object

This class caches class.forName calls, since these calls seem to be expensive.

Version:
$Revision: 1.20 $
Author:
$Author: schneider $

Field Summary
private static java.util.Hashtable map
          No comment provided by developer, please add a comment to improve documentation.
private static ClassMap theInstance
          The singleton instance.
 
Constructor Summary
private ClassMap()
          Default Constructor
 
Method Summary
 java.lang.Class forName(java.lang.String name)
          No comment provided by developer, please add a comment to improve documentation.
static ClassMap get()
          Get and init the Singleton instance.
 java.lang.Class getClass(java.lang.String name)
          Try to find class 'name'.
private  void init()
          Fill classes with java basetypes (boolean, byte, char, short, int, long, float, and double).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

theInstance

private static ClassMap theInstance
The singleton instance.


map

private static java.util.Hashtable map
No comment provided by developer, please add a comment to improve documentation.

Constructor Detail

ClassMap

private ClassMap()
Default Constructor

Method Detail

get

public static ClassMap get()
Get and init the Singleton instance.

Returns:
the Singleton instance

init

private void init()
Fill classes with java basetypes (boolean, byte, char, short, int, long, float, and double).


forName

public java.lang.Class forName(java.lang.String name)
                        throws java.lang.ClassNotFoundException
No comment provided by developer, please add a comment to improve documentation.

Parameters:
name - No description provided
Returns:
No description provided
Throws:
java.lang.ClassNotFoundException - Exception description not provided

getClass

public java.lang.Class getClass(java.lang.String name)
Try to find class 'name'.

Parameters:
name - the name of class
Returns:
the class with class.getName() == 'name' or null , if class not found