org.codehaus.groovy.grails.cli.support
Class GrailsRootLoader

java.lang.Object
  extended by java.lang.ClassLoader
      extended by java.security.SecureClassLoader
          extended by java.net.URLClassLoader
              extended by org.codehaus.groovy.tools.RootLoader
                  extended by org.codehaus.groovy.grails.cli.support.GrailsRootLoader

public class GrailsRootLoader
extends org.codehaus.groovy.tools.RootLoader

A custom Groovy RootLoader that works around issue GROOVY-2303. The problem is with Jaxen, so if we manage to remove that dependency (or it stops packaging UserDataHandler) we can revert back to using plain old Groovy RootLoader.

Since:
1.0

Created: Nov 29, 2007

Author:
Graeme Rocher

Constructor Summary
GrailsRootLoader()
           
GrailsRootLoader(URL[] urls, ClassLoader parent)
           
 
Method Summary
protected  Class loadClass(String name, boolean resolve)
           
 
Methods inherited from class org.codehaus.groovy.tools.RootLoader
addURL, findClass, getResource
 
Methods inherited from class java.net.URLClassLoader
definePackage, findResource, findResources, getPermissions, 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, findLibrary, findLoadedClass, findSystemClass, getPackage, getPackages, getParent, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrailsRootLoader

public GrailsRootLoader(URL[] urls,
                        ClassLoader parent)

GrailsRootLoader

public GrailsRootLoader()
Method Detail

loadClass

protected Class loadClass(String name,
                          boolean resolve)
                   throws ClassNotFoundException
Overrides:
loadClass in class org.codehaus.groovy.tools.RootLoader
Throws:
ClassNotFoundException


Copyright (c) 2005-2009 The Grails project