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
Nested ClassesModifier and TypeClassDescriptionprotected classInner 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongroovy.lang.GroovyClassLoader.ClassCollectorcreateCollector(org.codehaus.groovy.control.CompilationUnit unit, org.codehaus.groovy.control.SourceUnit su) protected Class<?>org.codehaus.groovy.control.CompilerConfigurationgetResourceAsStream(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, setShouldRecompileMethods inherited from class java.net.URLClassLoader
definePackage, findResource, findResources, getURLs, newInstance, newInstanceMethods inherited from class java.security.SecureClassLoader
defineClass, defineClassMethods 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:
findClassin classURLClassLoader- Throws:
ClassNotFoundException
-
getResourceAsStream
- Overrides:
getResourceAsStreamin classURLClassLoader
-
createCollector
public groovy.lang.GroovyClassLoader.ClassCollector createCollector(org.codehaus.groovy.control.CompilationUnit unit, org.codehaus.groovy.control.SourceUnit su) - Overrides:
createCollectorin classgroovy.lang.GroovyClassLoader
-
getConfiguration
public org.codehaus.groovy.control.CompilerConfiguration getConfiguration()
-