Code example for Hashtable

Methods: containsKey, get, keys

0
	   
	  tools.put(identity,tool);
	} 
	 
	public static Class getClass(String plugin,String classname) throws ClassNotFoundException {
	  Enumeration e = tools.keys();
 
	  System.out.println("Looking for tool: " + plugin);
	  if(tools.containsKey(plugin)) {
	    AlienObjectTool tool = (AlienObjectTool)tools.get(plugin);
	    Plugin tp = tool.getPlugin();
	    System.out.println("Tool found loading class");
	    return tp.getBundle().loadClass(classname);
	  } 
	  System.out.println("Not found tool");
	  throw new ClassNotFoundException(classname);
	} 
}