Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.jasperreports.engine.util
Class ClassUtils

    java.lang.Object
      net.sf.jasperreports.engine.util.ClassUtils

    public final class ClassUtils

extends java.lang.Object

Class utilities.

Version:
  $Id: ClassUtils.java 3712 2010-04-08 09:53:09Z teodord $
Author:
  Lucian Chirita (lucianc@users.sourceforge.net)

Method Summary
`static java.lang.Object` | `instantiateClass(java.lang.String className, java.lang.Class expectedType)` Instantiates a class.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### instantiateClass

    public static final java.lang.Object instantiateClass(java.lang.String className,
                                                          java.lang.Class expectedType)

  Instantiates a class.

  The class is expected to have a public no-argument constructor.

  Parameters:
    `className` - the class name
    `expectedType` - the expected (super) type of the result
  Returns:
    a newly created instance of the specified class
  Throws:
    `JRRuntimeException` - if the class cannot be loaded or instantiated, or if it does not implement the expected type

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

© 2001-2010 Jaspersoft Corporation www.jaspersoft.com