public interface ConstructorAccessor
| Modifier and Type | Method and Description |
|---|---|
Object |
newInstance(Object[] args)
Constructs the object.
|
Object newInstance(Object[] args) throws InstantiationException, IllegalArgumentException, InvocationTargetException, IllegalAccessException
args - the argumentsIllegalAccessException - if this Constructor object is enforcing Java language access control and the underlying constructor is
inaccessible.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.InstantiationException - if the class that declares the underlying constructor represents an abstract class.InvocationTargetException - if the underlying constructor throws an exception.ExceptionInInitializerError - if the initialization provoked by this method fails.Constructor.newInstance(Object...)Copyright © 2012 Batoo Software & Consultancy. All Rights Reserved.