public class GroovyTypeLoader extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CRLF |
protected WebLoader |
loader |
static org.apache.commons.logging.Log |
log |
protected File |
root |
protected TypeRegistry |
typeReg |
static String |
WEB_TYPES_FILE |
Constructor and Description |
---|
GroovyTypeLoader(WebEngine engine,
TypeRegistry typeReg,
File root) |
Modifier and Type | Method and Description |
---|---|
void |
flushCache() |
void |
load() |
protected TypeDescriptor |
loadType(String className)
Gets a type descriptor given an absolute className.
|
protected TypeDescriptor |
loadTypeAndRecord(Writer cache,
String className)
Loads a type and cache it.
|
protected void |
scan(File root,
String path,
Writer cache) |
public static final org.apache.commons.logging.Log log
public static final String WEB_TYPES_FILE
protected final TypeRegistry typeReg
public GroovyTypeLoader(WebEngine engine, TypeRegistry typeReg, File root)
public void flushCache()
public void load()
protected TypeDescriptor loadTypeAndRecord(Writer cache, String className) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
protected TypeDescriptor loadType(String className) throws ClassNotFoundException
If this class doesn't define a type or type adapter, return null.
ClassNotFoundException
Copyright © 2017 Nuxeo. All rights reserved.