org.opensubsystems.core.util
Class ClassUtils

java.lang.Object
  extended by org.opensubsystems.core.util.ClassUtils

public final class ClassUtils
extends java.lang.Object

Set of utilities to work with classes.

Version:
$Id: ClassUtils.java,v 1.4 2007/01/07 06:14:01 bastafidli Exp $
Author:
Miro Halas
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Method Summary
static java.lang.Object createNewInstance(java.lang.Class templateClass)
          Create new instance of the class
static java.lang.Object createNewInstance(java.lang.String strClassName)
          Create new instance of the class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createNewInstance

public static java.lang.Object createNewInstance(java.lang.String strClassName)
                                          throws OSSException
Create new instance of the class

Parameters:
strClassName - - identifier of the class for which new instance should be created
Returns:
Object - new instance of the object
Throws:
OSSException - - an error has occured

createNewInstance

public static java.lang.Object createNewInstance(java.lang.Class templateClass)
                                          throws OSSException
Create new instance of the class

Parameters:
templateClass - - identifier of the class for which new instance should be created
Returns:
Object - new instance of the object
Throws:
OSSException - - an error has occured


Copyright © 2003 - 2006 OpenSubsystems s.r.o.