org.exoplatform.services.rest.ext.groovy
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
findResourceURLTasks
public final ConcurrentMap<String,Future<URL>> findResourceURLTasks
resources
protected final Map<String,URL> resources
roots
protected final URL[] roots
DefaultGroovyResourceLoader
public DefaultGroovyResourceLoader(URL[] roots)
throws MalformedURLException
- Throws:
MalformedURLException
DefaultGroovyResourceLoader
public DefaultGroovyResourceLoader(URL root)
throws MalformedURLException
- Throws:
MalformedURLException
loadGroovySource
public final URL loadGroovySource(String filename)
throws MalformedURLException
-
- Specified by:
loadGroovySource in interface groovy.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)
Copyright © 2012 eXo Platform SAS. All Rights Reserved.