public class BeanUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
invokeInstanceMethod(Object instance,
Method method,
Object[] args)
Invokes the given method on the given object via reflection, handles simple type conversion
from String to simple types.
|
static Method |
resolveMethod(Class clazz,
String methodName,
int argCount)
Finds a method in the given class with the given method name and argument count.
|
public static Object invokeInstanceMethod(Object instance, Method method, Object[] args) throws SynapseException
instance - Instance to invoke the method on.method - Method to be invoked.args - Arguments for the method invocation.SynapseException - If method invocation fails.public static Method resolveMethod(Class clazz, String methodName, int argCount) throws SynapseException
clazz - Class to search for the method in.methodName - Method name to search for.argCount - Length of the argument list.SynapseException - If two or more overloaded methods are found with the given name and
argument count.Copyright © 2005-2017 Apache Software Foundation. All Rights Reserved.