Class DefaultTypeLoader
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.DefaultTypeLoader
-
public class DefaultTypeLoader extends Object
A type loader which is loading types from META-INF/web-types file. This loader is also checking the web module nature. If the project has for example a Groovy nature it will call at end theGroovyTypeLoader
- Author:
- Bogdan Stefanescu
-
-
Field Summary
Fields Modifier and Type Field Description protected GroovyTypeLoader
gLoader
protected WebLoader
loader
static Log
log
protected ModuleImpl
module
protected File
root
protected TypeRegistry
typeReg
static String
WEB_TYPES_FILE
-
Constructor Summary
Constructors Constructor Description DefaultTypeLoader(ModuleImpl module, TypeRegistry typeReg, File root)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flushCache()
ModuleImpl
getModule()
void
load()
protected TypeDescriptor
loadType(Class<?> clazz)
protected TypeDescriptor
loadType(String className)
protected TypeDescriptor
loadType(ClassProxy clazz)
protected void
loadTypes(Class<?>[] types)
protected void
loadTypesFile(File file)
Old method to load types from a web-types file generated at build time
-
-
-
Field Detail
-
WEB_TYPES_FILE
public static final String WEB_TYPES_FILE
- See Also:
- Constant Field Values
-
gLoader
protected GroovyTypeLoader gLoader
-
module
protected final ModuleImpl module
-
typeReg
protected final TypeRegistry typeReg
-
-
Constructor Detail
-
DefaultTypeLoader
public DefaultTypeLoader(ModuleImpl module, TypeRegistry typeReg, File root)
-
-
Method Detail
-
getModule
public ModuleImpl getModule()
-
load
public void load()
-
flushCache
public void flushCache()
-
loadTypesFile
protected void loadTypesFile(File file) throws IOException, ClassNotFoundException
Old method to load types from a web-types file generated at build time- Throws:
IOException
ClassNotFoundException
-
loadType
protected TypeDescriptor loadType(String className) throws ClassNotFoundException
- Throws:
ClassNotFoundException
-
loadType
protected TypeDescriptor loadType(Class<?> clazz)
-
loadType
protected TypeDescriptor loadType(ClassProxy clazz)
-
-