org.rhq.enterprise.communications.util
Class ClassUtil

java.lang.Object
  extended by org.rhq.enterprise.communications.util.ClassUtil

public class ClassUtil
extends Object

Utilities used for working with Class objects.

Author:
John Mazzitelli

Method Summary
static Class getClassFromTypeName(String type_name)
          Converts a type name (as a String) into its Class representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getClassFromTypeName

public static Class getClassFromTypeName(String type_name)
                                  throws ClassNotFoundException
Converts a type name (as a String) into its Class representation. Primitives are converted to their object types (e.g. "int" will return Integer.TYPE).

Parameters:
type_name - the type name string
Returns:
the type's Class
Throws:
ClassNotFoundException - if the type name cannot be converted to a class object


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.