|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.utils.Java
public class Java
Java utils
| Nested Class Summary | |
|---|---|
static class |
Java.FieldWrapper
Field accessor set and get value for a property, using the getter/setter when it exists or direct access otherwise. |
| Constructor Summary | |
|---|---|
Java()
|
|
| Method Summary | |
|---|---|
static Object |
deserialize(byte[] b)
|
static Object |
extractUnderlyingCallable(FutureTask<?> futureTask)
Try to discover what is hidden under a FutureTask (hack) |
static Method |
findActionMethod(String name,
Class<?> clazz)
Find the first public static method of a controller class |
static List<Method> |
findAllAnnotatedMethods(Class<?> clazz,
Class<? extends Annotation> annotationType)
Find all annotated method from a class |
static void |
findAllFields(Class<?> clazz,
Set<Field> found)
|
static Java.FieldWrapper |
getFieldWrapper(Field field)
|
static Object |
invokeStatic(Class<?> clazz,
String method)
Invoke a static method |
static Object |
invokeStatic(Class<?> clazz,
String method,
Object... args)
Invoke a static method with args |
static Object |
invokeStatic(Method method,
Map<String,String[]> args)
|
static Object |
invokeStatic(Method method,
Object[] args)
|
static Object |
invokeStaticOrParent(Class<?> clazz,
String method,
Object... args)
|
static String[] |
parameterNames(Method method)
Retrieve parameter names of a method |
static String |
rawJavaType(Class<?> clazz)
|
static String |
rawMethodSignature(Method method)
|
static byte[] |
serialize(Object o)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Java()
| Method Detail |
|---|
public static Object extractUnderlyingCallable(FutureTask<?> futureTask)
public static Method findActionMethod(String name,
Class<?> clazz)
name - The method nameclazz - The class
public static Object invokeStatic(Class<?> clazz,
String method)
throws Exception
clazz - The classmethod - The method name
Exception
public static Object invokeStatic(Class<?> clazz,
String method,
Object... args)
throws Exception
clazz - The classmethod - The method nameargs - Arguments
Exception
public static Object invokeStaticOrParent(Class<?> clazz,
String method,
Object... args)
throws Exception
Exception
public static Object invokeStatic(Method method,
Map<String,String[]> args)
throws Exception
Exception
public static Object invokeStatic(Method method,
Object[] args)
throws Exception
Exception
public static String[] parameterNames(Method method)
throws Exception
Exceptionpublic static String rawMethodSignature(Method method)
public static String rawJavaType(Class<?> clazz)
public static List<Method> findAllAnnotatedMethods(Class<?> clazz,
Class<? extends Annotation> annotationType)
clazz - The classannotationType - The annotation class
public static void findAllFields(Class<?> clazz,
Set<Field> found)
public static Java.FieldWrapper getFieldWrapper(Field field)
public static byte[] serialize(Object o)
throws Exception
Exception
public static Object deserialize(byte[] b)
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||