org.apache.derby.iapi.services.loader
Class ClassInfo

java.lang.Object
  extended byorg.apache.derby.iapi.services.loader.ClassInfo
All Implemented Interfaces:
InstanceGetter

public class ClassInfo
extends java.lang.Object
implements InstanceGetter


Field Summary
private  java.lang.Class clazz
           
private  java.lang.reflect.Constructor noArgConstructor
           
private static java.lang.Object[] noArguments
           
private static java.lang.Class[] noParameters
           
private  boolean useConstructor
           
 
Constructor Summary
ClassInfo(java.lang.Class clazz)
           
 
Method Summary
 java.lang.String getClassName()
          Return the name of this class.
 java.lang.Class getClassObject()
          Return the class object for this class.
 java.lang.Object getNewInstance()
          Create an instance of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noParameters

private static final java.lang.Class[] noParameters

noArguments

private static final java.lang.Object[] noArguments

clazz

private final java.lang.Class clazz

useConstructor

private boolean useConstructor

noArgConstructor

private java.lang.reflect.Constructor noArgConstructor
Constructor Detail

ClassInfo

public ClassInfo(java.lang.Class clazz)
Method Detail

getClassName

public final java.lang.String getClassName()
Return the name of this class.


getClassObject

public final java.lang.Class getClassObject()
Return the class object for this class.


getNewInstance

public java.lang.Object getNewInstance()
                                throws java.lang.InstantiationException,
                                       java.lang.IllegalAccessException,
                                       java.lang.reflect.InvocationTargetException
Create an instance of this class. Assumes that clazz has already been initialized. Optimizes Class.newInstance() by caching and using the no-arg Constructor directly. Class.newInstance() looks up the constructor each time.

Specified by:
getNewInstance in interface InstanceGetter
Throws:
java.lang.InstantiationException - Zero arg constructor can not be executed
java.lang.IllegalAccessException - Class or zero arg constructor is not public.
java.lang.reflect.InvocationTargetException - Exception throw in zero-arg constructor.

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.