|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.ClassLoader java.security.SecureClassLoader java.net.URLClassLoader groovy.lang.GroovyClassLoader org.codehaus.groovy.grails.compiler.GrailsClassLoader
public class GrailsClassLoader
A GroovyClassLoader that supports reloading using inner class loaders
Nested Class Summary |
---|
Nested classes/interfaces inherited from class groovy.lang.GroovyClassLoader |
---|
groovy.lang.GroovyClassLoader.ClassCollector, groovy.lang.GroovyClassLoader.InnerLoader |
Field Summary |
---|
Fields inherited from class groovy.lang.GroovyClassLoader |
---|
classCache, sourceCache |
Constructor Summary | |
---|---|
GrailsClassLoader()
|
|
GrailsClassLoader(ClassLoader parent,
org.codehaus.groovy.control.CompilerConfiguration config,
GrailsResourceLoader resourceLoader)
|
Method Summary | |
---|---|
org.codehaus.groovy.control.MultipleCompilationErrorsException |
getCompilationError()
|
boolean |
hasCompilationErrors()
|
protected Class |
loadClass(String name,
boolean resolve)
|
protected Resource |
loadGroovySource(String name)
|
Class |
reloadClass(String name)
|
void |
setGrailsResourceLoader(GrailsResourceLoader resourceLoader)
|
Methods inherited from class groovy.lang.GroovyClassLoader |
---|
addClasspath, addURL, clearCache, createCollector, createCompilationUnit, defineClass, defineClass, defineClass, defineClass, expandClassPath, generateScriptName, getClassCacheEntry, getClassPath, getLoadedClasses, getPermissions, getResourceLoader, getTimeStamp, isRecompilable, isShouldRecompile, isSourceNewer, loadClass, loadClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, recompile, removeClassCacheEntry, setClassCacheEntry, setResourceLoader, setShouldRecompile |
Methods inherited from class java.net.URLClassLoader |
---|
definePackage, findClass, findResource, findResources, getURLs, newInstance, newInstance |
Methods inherited from class java.security.SecureClassLoader |
---|
defineClass, defineClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrailsClassLoader()
public GrailsClassLoader(ClassLoader parent, org.codehaus.groovy.control.CompilerConfiguration config, GrailsResourceLoader resourceLoader)
Method Detail |
---|
public boolean hasCompilationErrors()
public org.codehaus.groovy.control.MultipleCompilationErrorsException getCompilationError()
public Class reloadClass(String name)
protected Resource loadGroovySource(String name) throws MalformedURLException
MalformedURLException
protected Class loadClass(String name, boolean resolve) throws ClassNotFoundException
loadClass
in class groovy.lang.GroovyClassLoader
ClassNotFoundException
public void setGrailsResourceLoader(GrailsResourceLoader resourceLoader)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |