Package org.apache.torque.generator.configuration

# Klasse ClassHelper

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

public final class ClassHelper extends Object
Helper for instantiating classes. $Id: ClassHelper.java 1917232 2024-04-21 10:21:37Z tv $

- ## Methodenübersicht

  Modifizierer und Typ
  Methode
  Beschreibung
  `static Object`
  `getInstance(String className, Class<?> isInstanceOf, UnitDescriptor unitDescriptor)`
  Creates an instance of a class and checks whether it can be casted to another class

  ### Von Klasse geerbte Methoden java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Methodendetails

  - ### getInstance

    public static Object getInstance(String className, Class<?> isInstanceOf, UnitDescriptor unitDescriptor) throws ConfigurationException
    Creates an instance of a class and checks whether it can be casted to another class
    Parameter:
      `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.
      `unitDescriptor` - The description of the generation unit, not null.
    Gibt zurück:
      the instance of the class
    Löst aus:
      `ConfigurationException` - if the class cannot be instantiated or it is not an instance of `isInstanceOf`