public class SunConstructorAccessor extends Object implements ConstructorAccessor
| Constructor and Description |
|---|
SunConstructorAccessor(Object constructor) |
public SunConstructorAccessor(Object constructor)
constructor - the constructorpublic Object newInstance(Object[] args) throws InstantiationException, IllegalArgumentException, InvocationTargetException
newInstance in interface ConstructorAccessorargs - the argumentsInstantiationException - if the class that declares the underlying constructor represents an abstract class.IllegalArgumentException - if the number of actual and formal parameters differ; if an unwrapping conversion for primitive arguments fails; or
if, after possible unwrapping, a parameter value cannot be converted to the corresponding formal parameter type by a
method invocation conversion; if this constructor pertains to an enum type.InvocationTargetException - if the underlying constructor throws an exception.Constructor.newInstance(Object...)Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.