public class ReflectionHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
invoke(Object obj,
String method,
Class[] argTypes,
Object[] args)
Invokes a method on the given object by passing the given arguments
into the method.
|
static Object |
newObject(String className)
Constructs a new object for the given class name.
|
static Object |
newObject(String className,
Class[] argTypes,
Object[] args)
Constructs a new object for the given class name and with the given
arguments.
|
public static Object newObject(String className)
className
- Stringpublic static Object newObject(String className, Class[] argTypes, Object[] args)
className
- StringargTypes
- Class[]args
- Object[]Copyright © 2005–2019 Alfresco Software. All rights reserved.