public class Reflection extends Object
| Constructor and Description |
|---|
Reflection() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
newInstance(Class<T> implClass,
Class<?>[] argumentTypes,
Object[] arguments)
Create a new instance by finding a constructor that matches the argumentTypes signature
using the arguments for instantiation.
|
public static <T> T newInstance(Class<T> implClass, Class<?>[] argumentTypes, Object[] arguments)
implClass - Full classname of class to createargumentTypes - The constructor argument typesarguments - The constructor argumentsIllegalArgumentException - if className, argumentTypes, or arguments are nullRuntimeException - if any exceptions during creationCopyright © 2016 JBoss by Red Hat. All rights reserved.