Class ContentStoreGroovyResourceLoader
- java.lang.Object
-
- org.craftercms.engine.util.groovy.ContentStoreGroovyResourceLoader
-
- All Implemented Interfaces:
groovy.lang.GroovyResourceLoader
public class ContentStoreGroovyResourceLoader extends Object implements groovy.lang.GroovyResourceLoader
Implementation ofContentStoreGroovyResourceLoader
that uses Crafter Core's content store to load Groovy resources.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description protected String
groovyResourcesUrlPrefix
protected SiteContext
siteContext
protected ContentStoreUrlStreamHandler
urlStreamHandler
-
Constructor Summary
Constructors Constructor Description ContentStoreGroovyResourceLoader(SiteContext siteContext, String groovyResourcesUrlPrefix)
-
-
-
Field Detail
-
siteContext
protected SiteContext siteContext
-
urlStreamHandler
protected ContentStoreUrlStreamHandler urlStreamHandler
-
groovyResourcesUrlPrefix
protected String groovyResourcesUrlPrefix
-
-
Constructor Detail
-
ContentStoreGroovyResourceLoader
public ContentStoreGroovyResourceLoader(SiteContext siteContext, String groovyResourcesUrlPrefix)
-
-
Method Detail
-
loadGroovySource
public URL loadGroovySource(String filename) throws MalformedURLException
- Specified by:
loadGroovySource
in interfacegroovy.lang.GroovyResourceLoader
- Throws:
MalformedURLException
-
-