getConstructor(Class type, Class[] argTypes) Returns a
Constructor for the given method signature, or null
if no such Constructor can be found.
Parameters: type - the (non-null) type of Object the returned Constructor should create Parameters: argTypes - a non-null array of types describing the parameters to the Constructor.
invokeConstructor(Class type, Class[] argTypes, Object[] argValues) Creates a new instance of the specified type
using a
Constructor described by the given parameter types
and values.
Parameters: type - the type of Object to be created Parameters: argTypes - a non-null array of types describing the parameters to the Constructor. Parameters: argValues - a non-null array containing the values of the parameters to the Constructor.
Returns a
Constructor for the given method signature, or null
if no such Constructor can be found.
Parameters: type - the (non-null) type of Object the returned Constructor should create Parameters: argTypes - a non-null array of types describing the parameters to the Constructor. a Constructor for the given method signature, or nullif no such Constructor can be found. See Also:ConstructorUtil.invokeConstructor
Creates a new instance of the specified type
using a
Constructor described by the given parameter types
and values.
Parameters: type - the type of Object to be created Parameters: argTypes - a non-null array of types describing the parameters to the Constructor. Parameters: argValues - a non-null array containing the values of the parameters to the Constructor. a new instance of the specified typeusing a Constructor described by the given parameter typesand values. exception: InstantiationException - exception: IllegalAccessException - exception: InvocationTargetException -