Class DefaultGroovyResourceLoader
- java.lang.Object
-
- org.exoplatform.services.rest.ext.groovy.DefaultGroovyResourceLoader
-
- All Implemented Interfaces:
groovy.lang.GroovyResourceLoader
public class DefaultGroovyResourceLoader extends Object implements groovy.lang.GroovyResourceLoader
- Version:
- $Id: DefaultGroovyResourceLoader.java 2680 2010-06-22 11:43:00Z aparfonov $
- Author:
- Andrey Parfonov
-
-
Constructor Summary
Constructors Constructor Description DefaultGroovyResourceLoader(URL root)DefaultGroovyResourceLoader(URL[] roots)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancheckResource(URL resource)protected URLcreateURL(URL root, String filename)protected URLfindResourceURL(String filename)protected URLgetResource(String filename)protected StringgetSourceFileExtension()URLloadGroovySource(String filename)
-
-
-
Constructor Detail
-
DefaultGroovyResourceLoader
public DefaultGroovyResourceLoader(URL[] roots) throws MalformedURLException
- Throws:
MalformedURLException
-
DefaultGroovyResourceLoader
public DefaultGroovyResourceLoader(URL root) throws MalformedURLException
- Throws:
MalformedURLException
-
-
Method Detail
-
loadGroovySource
public final URL loadGroovySource(String filename) throws MalformedURLException
- Specified by:
loadGroovySourcein interfacegroovy.lang.GroovyResourceLoader- Throws:
MalformedURLException
-
getResource
protected URL getResource(String filename) throws MalformedURLException
- Throws:
MalformedURLException
-
findResourceURL
protected URL findResourceURL(String filename) throws MalformedURLException
- Throws:
MalformedURLException
-
createURL
protected URL createURL(URL root, String filename) throws MalformedURLException
- Throws:
MalformedURLException
-
getSourceFileExtension
protected String getSourceFileExtension()
-
checkResource
protected boolean checkResource(URL resource)
-
-