public class ExtDirectSpringUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equal(java.lang.Object a,
java.lang.Object b)
Checks if two objects are equal.
|
static MethodInfo |
findMethodInfo(org.springframework.context.ApplicationContext context,
java.lang.String beanName,
java.lang.String methodName)
Retrieves a methodInfo from a method in a spring managed bean.
|
static java.lang.Object |
invoke(org.springframework.context.ApplicationContext context,
java.lang.String beanName,
MethodInfo methodInfo,
java.lang.Object[] params)
Invokes a method on a Spring managed bean.
|
public static boolean equal(java.lang.Object a,
java.lang.Object b)
a - object oneb - object twopublic static MethodInfo findMethodInfo(org.springframework.context.ApplicationContext context, java.lang.String beanName, java.lang.String methodName)
MethodInfoCache with the key
beanName,methodNamecontext - Spring application contextbeanName - name of the bean to find the method inmethodName - name of the method to retrievejava.lang.IllegalArgumentException - if the method is not annotated with a ExtDirectSpring annotation
or there is no method in the beanpublic static java.lang.Object invoke(org.springframework.context.ApplicationContext context,
java.lang.String beanName,
MethodInfo methodInfo,
java.lang.Object[] params)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
context - a Spring application contextbeanName - the name of the beanmethodInfo - the methodInfo objectparams - the parametersjava.lang.IllegalArgumentException - if there is no bean in the contextjava.lang.IllegalAccessExceptionjava.lang.reflect.InvocationTargetExceptionCopyright © 2010-2012. All Rights Reserved.