public class ExtDirectSpringUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equal(Object a,
Object b)
Checks if two objects are equal.
|
static MethodInfo |
findMethodInfo(org.springframework.context.ApplicationContext context,
String beanName,
String methodName)
Retrieves a methodInfo from a method in a spring managed bean.
|
static Object |
invoke(org.springframework.context.ApplicationContext context,
String beanName,
MethodInfo methodInfo,
Object[] params)
Invokes a method on a Spring managed bean.
|
public static boolean equal(Object a, Object b)
a - object oneb - object twopublic static MethodInfo findMethodInfo(org.springframework.context.ApplicationContext context, String beanName, 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 retrieveIllegalArgumentException - if the method is not annotated with a ExtDirectSpring annotation
or there is no method in the beanpublic static Object invoke(org.springframework.context.ApplicationContext context, String beanName, MethodInfo methodInfo, Object[] params) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
context - a Spring application contextbeanName - the name of the beanmethodInfo - the methodInfo objectparams - the parametersIllegalArgumentException - if there is no bean in the contextIllegalAccessExceptionInvocationTargetExceptionCopyright © 2010-2012. All Rights Reserved.