public class ExtendedGroovyClassLoader
extends groovy.lang.GroovyClassLoader
GroovyClassLoader
with support for obtaining '.class' files as
resources.Modifier and Type | Class and Description |
---|---|
protected class |
ExtendedGroovyClassLoader.ExtendedClassCollector
Inner collector class used to track as classes are added.
|
Constructor and Description |
---|
ExtendedGroovyClassLoader(GroovyCompilerScope scope) |
Modifier and Type | Method and Description |
---|---|
groovy.lang.GroovyClassLoader.ClassCollector |
createCollector(org.codehaus.groovy.control.CompilationUnit unit,
org.codehaus.groovy.control.SourceUnit su) |
protected Class<?> |
findClass(String name) |
org.codehaus.groovy.control.CompilerConfiguration |
getConfiguration() |
InputStream |
getResourceAsStream(String name) |
addClasspath, addURL, clearCache, close, createCompilationUnit, defineClass, defineClass, generateScriptName, getClassCacheEntry, getClassPath, getLoadedClasses, getPermissions, getResourceLoader, getTimeStamp, isRecompilable, isShouldRecompile, isSourceNewer, loadClass, loadClass, loadClass, loadClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, parseClass, recompile, removeClassCacheEntry, setClassCacheEntry, setResourceLoader, setShouldRecompile
definePackage, findResource, findResources, getURLs, newInstance, newInstance
defineClass, defineClass
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public ExtendedGroovyClassLoader(GroovyCompilerScope scope)
protected Class<?> findClass(String name) throws ClassNotFoundException
findClass
in class URLClassLoader
ClassNotFoundException
public InputStream getResourceAsStream(String name)
getResourceAsStream
in class URLClassLoader
public groovy.lang.GroovyClassLoader.ClassCollector createCollector(org.codehaus.groovy.control.CompilationUnit unit, org.codehaus.groovy.control.SourceUnit su)
createCollector
in class groovy.lang.GroovyClassLoader
public org.codehaus.groovy.control.CompilerConfiguration getConfiguration()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.