// shall I load them right away?
// let's try
ClassLoader cl = _parentClassLoader == null ? JapidRenderer.class.getClassLoader() : _parentClassLoader;
TemplateClassLoader classReloader = new TemplateClassLoader(cl);
for (RendererClass rc: classes.values()) {
try {
if (isDevMode())
rc.setClz(null); // to enable JIT loading in dev mode
else
rc.setClz((Class<JapidTemplateBaseWithoutPlay>) classReloader.loadClass(rc.getClassName()));
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}
howlong("compile/load time for " + names.length + " classes", t);