Class ClassInfo
java.lang.Object
org.apache.derby.iapi.services.loader.ClassInfo
- All Implemented Interfaces:
InstanceGetter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class
<?> private Constructor
private static final Object[]
private static final Class[]
private boolean
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
noParameters
-
noArguments
-
clazz
-
useConstructor
private boolean useConstructor -
noArgConstructor
-
-
Constructor Details
-
ClassInfo
-
-
Method Details
-
getClassName
Return the name of this class. -
getClassObject
Return the class object for this class. -
getNewInstance
public Object getNewInstance() throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodExceptionCreate 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 interfaceInstanceGetter
- Throws:
InstantiationException
- Zero arg constructor can not be executedIllegalAccessException
- Class or zero arg constructor is not public.InvocationTargetException
- Exception throw in zero-arg constructor.NoSuchMethodException
-