Class ExtendedGroovyClassLoader
java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
groovy.lang.GroovyClassLoader
org.springframework.boot.cli.compiler.ExtendedGroovyClassLoader
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class ExtendedGroovyClassLoader
extends groovy.lang.GroovyClassLoader
Extension of the
GroovyClassLoader
with support for obtaining '.class' files as
resources.- Since:
- 1.0.0
- Author:
- Phillip Webb, Dave Syer
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Inner collector class used to track as classes are added.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
-
Method Summary
Modifier and TypeMethodDescriptiongroovy.lang.GroovyClassLoader.ClassCollector
createCollector
(org.codehaus.groovy.control.CompilationUnit unit, org.codehaus.groovy.control.SourceUnit su) protected Class<?>
org.codehaus.groovy.control.CompilerConfiguration
getResourceAsStream
(String name) Methods inherited from class groovy.lang.GroovyClassLoader
addClasspath, addURL, clearCache, close, createCompilationUnit, defineClass, defineClass, generateScriptName, getClassCacheEntry, getClassPath, getLoadedClasses, getPermissions, getResourceLoader, getTimeStamp, hasCompatibleConfiguration, isRecompilable, isShouldRecompile, isSourceNewer, loadClass, loadClass, loadClass, loadClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, recompile, removeClassCacheEntry, setClassCacheEntry, setResourceLoader, setShouldRecompile
Methods inherited from class java.net.URLClassLoader
definePackage, findResource, findResources, getURLs, newInstance, newInstance
Methods inherited from class java.security.SecureClassLoader
defineClass, defineClass
Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findClass, findLibrary, findLoadedClass, findResource, findSystemClass, getClassLoadingLock, getDefinedPackage, getDefinedPackages, getName, getPackage, getPackages, getParent, getPlatformClassLoader, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, registerAsParallelCapable, resolveClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
-
Constructor Details
-
ExtendedGroovyClassLoader
-
-
Method Details
-
findClass
- Overrides:
findClass
in classURLClassLoader
- Throws:
ClassNotFoundException
-
getResourceAsStream
- Overrides:
getResourceAsStream
in classURLClassLoader
-
createCollector
public groovy.lang.GroovyClassLoader.ClassCollector createCollector(org.codehaus.groovy.control.CompilationUnit unit, org.codehaus.groovy.control.SourceUnit su) - Overrides:
createCollector
in classgroovy.lang.GroovyClassLoader
-
getConfiguration
public org.codehaus.groovy.control.CompilerConfiguration getConfiguration()
-