public abstract class BeanUtils
extends java.lang.Object
Constructor and Description |
---|
BeanUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
invokeInstanceMethod(java.lang.Object instance,
java.lang.reflect.Method method,
java.lang.Object[] args)
Invokes the given method on the given object via reflection, handles simple type conversion
from String to simple types.
|
static java.lang.reflect.Method |
resolveMethod(java.lang.Class clazz,
java.lang.String methodName,
int argCount)
Finds a method in the given class with the given method name and argument count.
|
public static java.lang.Object invokeInstanceMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.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 java.lang.reflect.Method resolveMethod(java.lang.Class clazz, java.lang.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-2021 Apache Software Foundation. All Rights Reserved.