The template class loader that detects changes and recompile on the fly and use play's class loader to load classes referenced in the templates, such as the model classes, controllers, etc. 1. whenever changes detected, clear the global class cache. 2. Only redefine the class to load, which will lead to define all the dependencies. All the dependencies must be defined by the same class classloader or InvalidAccessException. 3. The main program will call the loadClass once for each of the classes defined in one classloader.
@author Bing Ran
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.