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
  • Constructor Details

  • Method Details

    • findClass

      protected Class<?> findClass(String name) throws ClassNotFoundException
      Overrides:
      findClass in class URLClassLoader
      Throws:
      ClassNotFoundException
    • getResourceAsStream

      public InputStream getResourceAsStream(String name)
      Overrides:
      getResourceAsStream in class URLClassLoader
    • createCollector

      public groovy.lang.GroovyClassLoader.ClassCollector createCollector(org.codehaus.groovy.control.CompilationUnit unit, org.codehaus.groovy.control.SourceUnit su)
      Overrides:
      createCollector in class groovy.lang.GroovyClassLoader
    • getConfiguration

      public org.codehaus.groovy.control.CompilerConfiguration getConfiguration()