public class CompileCache extends AbstractCache<CompileResult>
| Modifier and Type | Class and Description |
|---|---|
static class |
CompileCache.PostCompileProcessor
This class encapsulates the post compilation behavior of the cache.
|
compiler| Constructor and Description |
|---|
CompileCache(Compiler compiler)
Creates a new
CompileCache with a default, initial size of
1000 entries. |
CompileCache(Compiler compiler,
int size) |
| Modifier and Type | Method and Description |
|---|---|
static File |
annotationOutputFile(File annotationDirectory,
String relativePath) |
Future<CompileResult> |
compile(String tplfile)
Unconditionally compiles the template, but does not put it into the
cache.
|
protected CompileTask |
createTask(String tplfile)
Creates a new task to be put into the cache, if necessary.
|
protected TaskResult.ResultType |
getExecutorQueueType()
Subclasses must return the executor queue type for the particular class.
|
static String |
getRelativePath(File baseDirectory,
File file) |
retrieve, retrieve, waitForResultpublic CompileCache(Compiler compiler)
CompileCache with a default, initial size of
1000 entries.compiler - associated compiler for this cachepublic CompileCache(Compiler compiler, int size)
public Future<CompileResult> compile(String tplfile)
tplfile - absolute path of the file to compileprotected CompileTask createTask(String tplfile)
AbstractCachecreateTask in class AbstractCache<CompileResult>tplfile - Key used to generate the associated task.protected TaskResult.ResultType getExecutorQueueType()
AbstractCachegetExecutorQueueType in class AbstractCache<CompileResult>Copyright © 2014 Quattor. All Rights Reserved.