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

## org.apache.torque.generator.configuration
Class ClassHelper

    java.lang.Object
      org.apache.torque.generator.configuration.ClassHelper

    public final class ClassHelper

extends Object

Helper for instantiating classes. $Id: ClassHelper.java 1331190 2012-04-27 02:41:35Z tfischer $

Method Summary
`static Object` | `getInstance(String className, Class<?> isInstanceOf)` Creates an instance of ca class and checks whether it can be casted to another class

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

Method Detail

### getInstance

    public static Object getInstance(String className,
                                     Class<?> isInstanceOf)
                              throws ConfigurationException

  Creates an instance of ca class and checks whether it can be casted to another class

  Parameters:
    `className` - the fully qualified name of the class to instantiate.
    `isInstanceOf` - the Interface or class the instance must be an instance of, or null to disable the check.
  Throws:
    `ConfigurationException` - if the class cannot be instantiated or it is not an instance of `isInstanceOf`

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

Copyright © 2000-2013 The Apache Software Foundation. All Rights Reserved.