Package play.classloading
Class BytecodeCache
- java.lang.Object
-
- play.classloading.BytecodeCache
-
public class BytecodeCache extends java.lang.ObjectUsed to speed up compilation time
-
-
Constructor Summary
Constructors Constructor Description BytecodeCache()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcacheBytecode(byte[] byteCode, java.lang.String name, java.lang.String source)Cache the bytecodestatic voiddeleteBytecode(java.lang.String name)Delete the bytecodestatic byte[]getBytecode(java.lang.String name, java.lang.String source)Retrieve the bytecode if source has not changed
-
-
-
Method Detail
-
deleteBytecode
public static void deleteBytecode(java.lang.String name)
Delete the bytecode- Parameters:
name- Cache name
-
getBytecode
public static byte[] getBytecode(java.lang.String name, java.lang.String source)Retrieve the bytecode if source has not changed- Parameters:
name- The cache namesource- The source code- Returns:
- The bytecode
-
cacheBytecode
public static void cacheBytecode(byte[] byteCode, java.lang.String name, java.lang.String source)Cache the bytecode- Parameters:
byteCode- The bytecodename- The cache namesource- The corresponding source
-
-