eXo WS :: REST :: Extentions 2.3.0-GA

org.exoplatform.services.rest.ext.groovy
Class DefaultGroovyResourceLoader

java.lang.Object
  extended by 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

Field Summary
 ConcurrentMap<String,Future<URL>> findResourceURLTasks
           
protected  Map<String,URL> resources
           
protected  URL[] roots
           
 
Constructor Summary
DefaultGroovyResourceLoader(URL root)
           
DefaultGroovyResourceLoader(URL[] roots)
           
 
Method Summary
protected  boolean checkResource(URL resource)
           
protected  URL createURL(URL root, String filename)
           
protected  URL findResourceURL(String filename)
           
protected  URL getResource(String filename)
           
protected  String getSourceFileExtension()
           
 URL loadGroovySource(String filename)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

findResourceURLTasks

public final ConcurrentMap<String,Future<URL>> findResourceURLTasks

resources

protected final Map<String,URL> resources

roots

protected final URL[] roots
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:
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)

eXo WS :: REST :: Extentions 2.3.0-GA

Copyright © 2012 eXo Platform SAS. All Rights Reserved.