Class InMemoryByteCodeGroovyClassLoader

java.lang.Object
java.lang.ClassLoader
java.security.SecureClassLoader
java.net.URLClassLoader
groovy.lang.GroovyClassLoader
io.micronaut.ast.groovy.utils.InMemoryByteCodeGroovyClassLoader
All Implemented Interfaces:
Closeable, AutoCloseable

@Internal public class InMemoryByteCodeGroovyClassLoader extends groovy.lang.GroovyClassLoader
Extended version of GroovyClassLoader that can be used to test dependency injection compilation.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • InMemoryByteCodeGroovyClassLoader

      public InMemoryByteCodeGroovyClassLoader()
      Default constructor.
    • InMemoryByteCodeGroovyClassLoader

      public InMemoryByteCodeGroovyClassLoader(ClassLoader loader)
      Parameters:
      loader - The ClassLoader
    • InMemoryByteCodeGroovyClassLoader

      public InMemoryByteCodeGroovyClassLoader(groovy.lang.GroovyClassLoader parent)
      Parameters:
      parent - The GroovyClassLoader
    • InMemoryByteCodeGroovyClassLoader

      public InMemoryByteCodeGroovyClassLoader(ClassLoader parent, org.codehaus.groovy.control.CompilerConfiguration config, boolean useConfigurationClasspath)
      Parameters:
      parent - The parent ClassLoader
      config - The CompilerConfiguration
      useConfigurationClasspath - Whether to use the configuration classpath
    • InMemoryByteCodeGroovyClassLoader

      public InMemoryByteCodeGroovyClassLoader(ClassLoader loader, org.codehaus.groovy.control.CompilerConfiguration config)
      Parameters:
      loader - The ClassLoader
      config - The CompilerConfiguration
  • Method Details