Package play.utils

Class Java

java.lang.Object
play.utils.Java

public class Java extends Object
Java utils
  • Field Details

    • _javaWithCaching

      protected static play.utils.JavaWithCaching _javaWithCaching
  • Constructor Details

    • Java

      public Java()
  • Method Details

    • getJavaWithCaching

      protected static play.utils.JavaWithCaching getJavaWithCaching()
    • parameterNames

      public static String[] parameterNames(Method method)
      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 class
      annotationType - The annotation class
      Returns:
      A list of method object
    • serialize

      public static byte[] serialize(Object o) throws IOException
      Throws:
      IOException
    • deserialize

      public static Object deserialize(byte[] b) throws IOException, ClassNotFoundException
      Throws:
      IOException
      ClassNotFoundException