play.classloading
类 BytecodeCache

java.lang.Object
  继承者 play.classloading.BytecodeCache

public class BytecodeCache
extends java.lang.Object

Used to speed up compilation time


构造方法摘要
BytecodeCache()
           
 
方法摘要
static void cacheBytecode(byte[] byteCode, java.lang.String name, java.lang.String source)
          Cache the bytecode
static void deleteBytecode(java.lang.String name)
          Delete the bytecode
static byte[] getBytecode(java.lang.String name, java.lang.String source)
          Retrieve the bytecode if source has not changed
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

BytecodeCache

public BytecodeCache()
方法详细信息

deleteBytecode

public static void deleteBytecode(java.lang.String name)
Delete the bytecode

参数:
name - Cache name

getBytecode

public static byte[] getBytecode(java.lang.String name,
                                 java.lang.String source)
Retrieve the bytecode if source has not changed

参数:
name - The cache name
source - The source code
返回:
The bytecode

cacheBytecode

public static void cacheBytecode(byte[] byteCode,
                                 java.lang.String name,
                                 java.lang.String source)
Cache the bytecode

参数:
byteCode - The bytecode
name - The cache name
source - The corresponding source


Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly