Java Class Load getClass(String name)

Here you can find the source of getClass(String name)

Description

get Class

License

Open Source License

Declaration

public static Class getClass(String name) 

Method Source Code

//package com.java2s;
/**//from   ww  w . j a v a  2 s  .  c om
 * Created on 10-Jan-2006
 * Created by Allan Crooks
 * Copyright (C) 2006 Aelitis, All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 *
 * AELITIS, SAS au capital de 46,603.30 euros
 * 8 Allee Lenotre, La Grille Royale, 78600 Le Mesnil le Roi, France.
 *
 */

import java.util.HashMap;
import java.util.Map;

public class Main {
    private static Map class_string_mapping = new HashMap();

    public static Class getClass(String name) {
        return (Class) class_string_mapping.get(name.toLowerCase());
    }
}

Related

  1. getClass(String className)
  2. getClass(String className)
  3. getClass(String className)
  4. getClass(String fullClassName)
  5. getClass(String name)
  6. getClass(String upnpDataType)
  7. getClassDescriptor(Class type)
  8. getClasses(Class infoClass)
  9. getClasses(Class t)