public class ReflectionConstructorAccess extends java.lang.Object implements ConstructorAccess
ConstructorAccess using reflection.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.reflect.Constructor<?> |
constructor |
| Constructor and Description |
|---|
ReflectionConstructorAccess(java.lang.reflect.Constructor<?> constructor) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<?>[] |
getParameterTypes() |
java.lang.Object |
newInstance(java.lang.Object... args)
Create a new instance of the target class with the given arguments.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcastInstancepublic ReflectionConstructorAccess(java.lang.reflect.Constructor<?> constructor)
public java.lang.Class<?>[] getParameterTypes()
getParameterTypes in interface ConstructorAccessConstructor.getParameterTypes()public java.lang.Object newInstance(java.lang.Object... args)
ConstructorAccessnewInstance in interface ConstructorAccessargs - The arguments to pass to the constructorConstructor.newInstance(Object...)