GroovyClassLoader find the Groovy script in CLASSPATH.
272829303132333435
return beanDefineHandler; } protected ClassLoader getClassLoader() { if (loader == null) { loader = new ClasspathGroovyLoader(new GroovyClassLoader()); } return loader; }
343536373839404142
return loader; } protected ClassLoader getClassLoader(ClassLoader parent) { if (loader == null) { loader = new ClasspathGroovyLoader(new GroovyClassLoader(parent)); } return loader; }
24252627282930
} @Override public void setClassLoader(ClassLoader loader) { this.loader = loader; groovyLoader = new ClasspathGroovyLoader(new GroovyClassLoader(loader)); }
293031323334353637
groovyLoader = new ClasspathGroovyLoader(new GroovyClassLoader(loader)); } protected ClassLoader getGroovyLoader() { if (groovyLoader == null) { groovyLoader = new ClasspathGroovyLoader(new GroovyClassLoader(loader)); } return groovyLoader; }