|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.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. |
Field Summary | |
---|---|
protected static play.utils.JavaWithCaching |
_javaWithCaching
|
protected static java.lang.Object |
_javaWithCachingLock
|
protected static ApplicationClassloaderState |
_lastKnownApplicationClassloaderState
|
Constructor Summary | |
---|---|
Java()
|
Method Summary | |
---|---|
static java.lang.Object |
deserialize(byte[] b)
|
static java.lang.String[] |
extractInfosFromByteCode(byte[] code)
|
static java.lang.Object |
extractUnderlyingCallable(java.util.concurrent.FutureTask<?> futureTask)
Try to discover what is hidden under a FutureTask (hack) |
static java.lang.reflect.Method |
findActionMethod(java.lang.String name,
java.lang.Class clazz)
Find the first public static method of a controller class |
static java.util.List<java.lang.reflect.Method> |
findAllAnnotatedMethods(java.lang.Class<?> clazz,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Find all annotated method from a class |
static java.util.List<java.lang.reflect.Method> |
findAllAnnotatedMethods(java.util.List<java.lang.Class> classes,
java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Find all annotated method from a class |
static void |
findAllFields(java.lang.Class clazz,
java.util.Set<java.lang.reflect.Field> found)
|
static Java.FieldWrapper |
getFieldWrapper(java.lang.reflect.Field field)
|
protected static play.utils.JavaWithCaching |
getJavaWithCaching()
|
static java.lang.Object |
invokeChildOrStatic(java.lang.Class<?> clazz,
java.lang.String method,
java.lang.Object... args)
|
static java.lang.Object |
invokeStatic(java.lang.Class<?> clazz,
java.lang.String method)
Invoke a static method |
static java.lang.Object |
invokeStatic(java.lang.Class<?> clazz,
java.lang.String method,
java.lang.Object... args)
Invoke a static method with args |
static java.lang.Object |
invokeStatic(java.lang.reflect.Method method,
java.util.Map<java.lang.String,java.lang.String[]> args)
|
static java.lang.Object |
invokeStatic(java.lang.reflect.Method method,
java.lang.Object[] args)
|
static java.lang.Object |
invokeStatic(java.lang.String clazz,
java.lang.String method)
|
static java.lang.Object |
invokeStaticOrParent(java.lang.Class<?> clazz,
java.lang.String method,
java.lang.Object... args)
|
static java.lang.String[] |
parameterNames(java.lang.reflect.Method method)
Retrieve parameter names of a method |
static java.lang.String |
rawJavaType(java.lang.Class clazz)
|
static java.lang.String |
rawMethodSignature(java.lang.reflect.Method method)
|
static byte[] |
serialize(java.lang.Object o)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static play.utils.JavaWithCaching _javaWithCaching
protected static ApplicationClassloaderState _lastKnownApplicationClassloaderState
protected static java.lang.Object _javaWithCachingLock
Constructor Detail |
---|
public Java()
Method Detail |
---|
protected static play.utils.JavaWithCaching getJavaWithCaching()
public static java.lang.String[] extractInfosFromByteCode(byte[] code)
public static java.lang.Object extractUnderlyingCallable(java.util.concurrent.FutureTask<?> futureTask)
public static java.lang.reflect.Method findActionMethod(java.lang.String name, java.lang.Class clazz)
name
- The method nameclazz
- The class
public static java.lang.Object invokeStatic(java.lang.Class<?> clazz, java.lang.String method) throws java.lang.Exception
clazz
- The classmethod
- The method name
java.lang.Exception
public static java.lang.Object invokeStatic(java.lang.String clazz, java.lang.String method) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object invokeStatic(java.lang.Class<?> clazz, java.lang.String method, java.lang.Object... args) throws java.lang.Exception
clazz
- The classmethod
- The method nameargs
- Arguments
java.lang.Exception
public static java.lang.Object invokeStaticOrParent(java.lang.Class<?> clazz, java.lang.String method, java.lang.Object... args) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object invokeChildOrStatic(java.lang.Class<?> clazz, java.lang.String method, java.lang.Object... args) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object invokeStatic(java.lang.reflect.Method method, java.util.Map<java.lang.String,java.lang.String[]> args) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object invokeStatic(java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Exception
java.lang.Exception
public static java.lang.String[] parameterNames(java.lang.reflect.Method method) throws java.lang.Exception
java.lang.Exception
public static java.lang.String rawMethodSignature(java.lang.reflect.Method method)
public static java.lang.String rawJavaType(java.lang.Class clazz)
public static java.util.List<java.lang.reflect.Method> findAllAnnotatedMethods(java.lang.Class<?> clazz, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
clazz
- The classannotationType
- The annotation class
public static java.util.List<java.lang.reflect.Method> findAllAnnotatedMethods(java.util.List<java.lang.Class> classes, java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
classes
- The classesannotationType
- The annotation class
public static void findAllFields(java.lang.Class clazz, java.util.Set<java.lang.reflect.Field> found)
public static Java.FieldWrapper getFieldWrapper(java.lang.reflect.Field field)
public static byte[] serialize(java.lang.Object o) throws java.lang.Exception
java.lang.Exception
public static java.lang.Object deserialize(byte[] b) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |