Package play.utils
Class Java
- java.lang.Object
-
- play.utils.Java
-
public class Java extends java.lang.ObjectJava utils
-
-
Field Summary
Fields Modifier and Type Field Description protected static play.utils.JavaWithCaching_javaWithCaching
-
Constructor Summary
Constructors Constructor Description Java()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.Objectdeserialize(byte[] b)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 classprotected static play.utils.JavaWithCachinggetJavaWithCaching()static java.lang.String[]parameterNames(java.lang.reflect.Method method)Retrieve parameter names of a methodstatic byte[]serialize(java.lang.Object o)
-
-
-
Method Detail
-
getJavaWithCaching
protected static play.utils.JavaWithCaching getJavaWithCaching()
-
parameterNames
public static java.lang.String[] parameterNames(java.lang.reflect.Method method)
Retrieve parameter names of a method- Parameters:
method- The given method- Returns:
- Array of parameter names
-
findAllAnnotatedMethods
public 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- Parameters:
clazz- The classannotationType- The annotation class- Returns:
- A list of method object
-
serialize
public static byte[] serialize(java.lang.Object o) throws java.io.IOException- Throws:
java.io.IOException
-
deserialize
public static java.lang.Object deserialize(byte[] b) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
-