@Internal public class InMemoryByteCodeGroovyClassLoader extends groovy.lang.GroovyClassLoader
GroovyClassLoader that can be used to test dependency injection compilation.| Constructor and Description | 
|---|
| InMemoryByteCodeGroovyClassLoader()Default constructor. | 
| InMemoryByteCodeGroovyClassLoader(java.lang.ClassLoader loader) | 
| InMemoryByteCodeGroovyClassLoader(java.lang.ClassLoader loader,
                                 org.codehaus.groovy.control.CompilerConfiguration config) | 
| InMemoryByteCodeGroovyClassLoader(java.lang.ClassLoader parent,
                                 org.codehaus.groovy.control.CompilerConfiguration config,
                                 boolean useConfigurationClasspath) | 
| InMemoryByteCodeGroovyClassLoader(groovy.lang.GroovyClassLoader parent) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addClass(java.lang.String name,
        byte[] code) | 
| java.lang.Class<?> | loadClass(java.lang.String name) | 
addClasspath, addURL, clearCache, close, createCollector, createCompilationUnit, defineClass, defineClass, generateScriptName, getClassCacheEntry, getClassPath, getLoadedClasses, getPermissions, getResourceLoader, getTimeStamp, hasCompatibleConfiguration, isRecompilable, isShouldRecompile, isSourceNewer, loadClass, loadClass, loadClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, recompile, removeClassCacheEntry, setClassCacheEntry, setResourceLoader, setShouldRecompiledefinePackage, findClass, findResource, findResources, getResourceAsStream, getURLs, newInstance, newInstanceclearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSignerspublic InMemoryByteCodeGroovyClassLoader()
public InMemoryByteCodeGroovyClassLoader(java.lang.ClassLoader loader)
loader - The ClassLoaderpublic InMemoryByteCodeGroovyClassLoader(groovy.lang.GroovyClassLoader parent)
parent - The GroovyClassLoaderpublic InMemoryByteCodeGroovyClassLoader(java.lang.ClassLoader parent,
                                         org.codehaus.groovy.control.CompilerConfiguration config,
                                         boolean useConfigurationClasspath)
parent - The parent ClassLoaderconfig - The CompilerConfigurationuseConfigurationClasspath - Whether to use the configuration classpathpublic InMemoryByteCodeGroovyClassLoader(java.lang.ClassLoader loader,
                                         org.codehaus.groovy.control.CompilerConfiguration config)
loader - The ClassLoaderconfig - The CompilerConfigurationpublic void addClass(java.lang.String name,
                     byte[] code)
name - The name of the classcode - The codepublic java.lang.Class<?> loadClass(java.lang.String name)
                             throws java.lang.ClassNotFoundException
loadClass in class groovy.lang.GroovyClassLoaderjava.lang.ClassNotFoundException