org.codehaus.groovy.grails.compiler.support
Class GrailsResourceLoader
java.lang.Object
org.codehaus.groovy.grails.compiler.support.GrailsResourceLoader
- All Implemented Interfaces:
- groovy.lang.GroovyResourceLoader
public class GrailsResourceLoader
- extends java.lang.Object
- implements groovy.lang.GroovyResourceLoader
A GroovyResourceLoader that loads groovy files using Spring's IO abstraction
- Since:
- 0.1
Created: 22-Feb-2006
- Author:
- Graeme Rocher
Method Summary |
java.util.List |
getLoadedResources()
|
org.springframework.core.io.Resource |
getResourceForClass(java.lang.Class theClass)
Returns the Grails resource for the given class or null if it is not a Grails resource |
org.springframework.core.io.Resource[] |
getResources()
|
java.net.URL |
loadGroovySource(java.lang.String className)
|
void |
setResources(org.springframework.core.io.Resource[] resources)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GrailsResourceLoader
public GrailsResourceLoader(org.springframework.core.io.Resource[] resources)
getLoadedResources
public java.util.List getLoadedResources()
setResources
public void setResources(org.springframework.core.io.Resource[] resources)
getResources
public org.springframework.core.io.Resource[] getResources()
loadGroovySource
public java.net.URL loadGroovySource(java.lang.String className)
throws java.net.MalformedURLException
- Specified by:
loadGroovySource
in interface groovy.lang.GroovyResourceLoader
- Throws:
java.net.MalformedURLException
getResourceForClass
public org.springframework.core.io.Resource getResourceForClass(java.lang.Class theClass)
- Returns the Grails resource for the given class or null if it is not a Grails resource
- Parameters:
theClass
- The class
- Returns:
- The Resource or null
Copyright (c) 2005-2006 The Grails project