public class Java extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Java.FieldWrapper
Field accessor
set and get value for a property, using the getter/setter when it exists or direct access otherwise.
|
| Modifier and Type | Field and Description |
|---|---|
protected static play.utils.JavaWithCaching |
_javaWithCaching |
protected static ApplicationClassloaderState |
_lastKnownApplicationClassloaderState |
| Constructor and Description |
|---|
Java() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
deserialize(byte[] b) |
static String[] |
extractInfosFromByteCode(byte[] code) |
static Object |
extractUnderlyingCallable(FutureTask<?> futureTask)
Try to discover what is hidden under a FutureTask (hack)
|
static List<Method> |
findAllAnnotatedMethods(Class<?> clazz,
Class<? extends Annotation> annotationType)
Find all annotated method from a class
|
static List<Method> |
findAllAnnotatedMethods(List<Class> classes,
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) |
protected static play.utils.JavaWithCaching |
getJavaWithCaching() |
static Object |
invokeChildOrStatic(Class<?> clazz,
String method,
Object... args) |
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 |
invokeStatic(String clazz,
String method) |
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) |
protected static play.utils.JavaWithCaching _javaWithCaching
protected static ApplicationClassloaderState _lastKnownApplicationClassloaderState
protected static play.utils.JavaWithCaching getJavaWithCaching()
public static String[] extractInfosFromByteCode(byte[] code)
public static Object extractUnderlyingCallable(FutureTask<?> futureTask)
public static Object invokeStatic(Class<?> clazz, String method) throws Exception
clazz - The classmethod - The method nameExceptionpublic static Object invokeStatic(String clazz, String method) throws Exception
Exceptionpublic static Object invokeStatic(Class<?> clazz, String method, Object... args) throws Exception
clazz - The classmethod - The method nameargs - ArgumentsExceptionpublic static Object invokeStaticOrParent(Class<?> clazz, String method, Object... args) throws Exception
Exceptionpublic static Object invokeChildOrStatic(Class<?> clazz, String method, Object... args) throws Exception
Exceptionpublic static Object invokeStatic(Method method, Map<String,String[]> args) throws Exception
Exceptionpublic static Object invokeStatic(Method method, Object[] args) throws Exception
Exceptionpublic static String[] parameterNames(Method method) throws Exception
Exceptionpublic static List<Method> findAllAnnotatedMethods(Class<?> clazz, Class<? extends Annotation> annotationType)
clazz - The classannotationType - The annotation classpublic static List<Method> findAllAnnotatedMethods(List<Class> classes, Class<? extends Annotation> annotationType)
classes - The classesannotationType - The annotation classpublic static Java.FieldWrapper getFieldWrapper(Field field)
public static byte[] serialize(Object o) throws IOException
IOExceptionGuillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly