public class DefaultGroovyResourceLoader extends Object implements groovy.lang.GroovyResourceLoader
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,URL> |
resources |
protected URL[] |
roots |
| Constructor and Description |
|---|
DefaultGroovyResourceLoader(URL root) |
DefaultGroovyResourceLoader(URL[] roots) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkResource(URL resource) |
protected URL |
createURL(URL root,
String filename) |
protected URL |
getResource(String filename) |
protected String[] |
getSourceFileExtensions() |
URL |
loadGroovySource(String filename) |
public DefaultGroovyResourceLoader(URL[] roots) throws MalformedURLException
MalformedURLExceptionpublic DefaultGroovyResourceLoader(URL root) throws MalformedURLException
MalformedURLExceptionpublic final URL loadGroovySource(String filename) throws MalformedURLException
loadGroovySource in interface groovy.lang.GroovyResourceLoaderMalformedURLExceptionprotected URL getResource(String filename) throws MalformedURLException
MalformedURLExceptionprotected URL createURL(URL root, String filename) throws MalformedURLException
MalformedURLExceptionprotected boolean checkResource(URL resource)
protected String[] getSourceFileExtensions()
Copyright © 2015. All rights reserved.