|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.util.ReflectionHelper
public class ReflectionHelper
Static Helper methods for instantiating objects from reflection.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Object newObject(String className)
className
-
public static Object newObject(String className, Class[] argTypes, Object[] args)
className
- argTypes
- args
-
public static Object invoke(Object obj, String method, Class[] argTypes, Object[] args)
obj
- method
- argTypes
- args
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |