org.exoplatform.services.rest.ext.groovy
Class GroovyClassLoaderProvider
java.lang.Object
org.exoplatform.services.rest.ext.groovy.GroovyClassLoaderProvider
public class GroovyClassLoaderProvider
- extends Object
Factory of Groovy class loader. It can provide preset GroovyClassLoader
instance or customized instance of GroovyClassLoader able resolve additional
Groovy source files.
- Version:
- $Id: GroovyClassLoaderProvider.java 3701 2010-12-22 10:15:37Z
aparfonov $
- Author:
- Andrey Parfonov
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroovyClassLoaderProvider
public GroovyClassLoaderProvider()
GroovyClassLoaderProvider
protected GroovyClassLoaderProvider(ExtendedGroovyClassLoader defaultClassLoader)
getGroovyClassLoader
public ExtendedGroovyClassLoader getGroovyClassLoader()
- Get default GroovyClassLoader.
- Returns:
- default GroovyClassLoader
getGroovyClassLoader
public ExtendedGroovyClassLoader getGroovyClassLoader(SourceFolder[] sources)
throws MalformedURLException
- Get customized instance of GroovyClassLoader that able to resolve
additional Groovy source files.
- Parameters:
sources - additional Groovy sources
- Returns:
- GroovyClassLoader
- Throws:
MalformedURLException - if any of entries in sources
has invalid URL.
Copyright © 2012 eXo Platform SAS. All Rights Reserved.