Package play.utils
Class Java
java.lang.Object
play.utils.Java
Java utils
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Object
deserialize
(byte[] b) findAllAnnotatedMethods
(Class<?> clazz, Class<? extends Annotation> annotationType) Find all annotated method from a classprotected static play.utils.JavaWithCaching
static String[]
parameterNames
(Method method) Retrieve parameter names of a methodstatic byte[]
-
Field Details
-
_javaWithCaching
protected static play.utils.JavaWithCaching _javaWithCaching
-
-
Constructor Details
-
Java
public Java()
-
-
Method Details
-
getJavaWithCaching
protected static play.utils.JavaWithCaching getJavaWithCaching() -
parameterNames
Retrieve parameter names of a method- Parameters:
method
- The given method- Returns:
- Array of parameter names
-
findAllAnnotatedMethods
public static List<Method> findAllAnnotatedMethods(Class<?> clazz, Class<? extends Annotation> annotationType) Find all annotated method from a class- Parameters:
clazz
- The classannotationType
- The annotation class- Returns:
- A list of method object
-
serialize
- Throws:
IOException
-
deserialize
- Throws:
IOException
ClassNotFoundException
-