Top Fields Constructors Methods
org.apache.derby.iapi.services.loader

public Class ClassInfo

extends Object
implements InstanceGetter
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.loader.InstanceGetter
Imports
java.lang.reflect.Constructor, .InvocationTargetException

Field Summary

Modifier and TypeField and Description
private final Class<?>
private Constructor<T>
private static final Object[]
private static final Class<T>[]
private boolean

Constructor Summary

AccessConstructor and Description
public
ClassInfo(Class<?> clazz)

Method Summary

Modifier and TypeMethod and Description
public final String

Returns:

the name of this class
getClassName
()

Return the name of this class.

public final Class<T>

Returns:

the class object for this class
getClassObject
()

Return the class object for this class.

public Object
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clazzback to summary
private final Class<?> clazz
noArgConstructorback to summary
private Constructor<T> noArgConstructor
noArgumentsback to summary
private static final Object[] noArguments
noParametersback to summary
private static final Class<T>[] noParameters
useConstructorback to summary
private boolean useConstructor

Constructor Detail

ClassInfoback to summary
public ClassInfo(Class<?> clazz)

Method Detail

getClassNameback to summary
public final String getClassName()

Return the name of this class.

Returns:String

the name of this class

getClassObjectback to summary
public final Class<T> getClassObject()

Return the class object for this class.

Returns:Class<T>

the class object for this class

getNewInstanceback to summary
public Object getNewInstance() throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException

Implements org.apache.derby.iapi.services.loader.InstanceGetter.getNewInstance.

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.

Returns:Object

Doc from org.apache.derby.iapi.services.loader.InstanceGetter.getNewInstance.

a new instance of the class

Exceptions
InstantiationException:
Zero arg constructor can not be executed
IllegalAccessException:
Class or zero arg constructor is not public.
InvocationTargetException:
Exception throw in zero-arg constructor.
NoSuchMethodException:
Throws on error