com.fatwire.gst.foundation.groovy.spring
Class SpringDiskGroovyLoader

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by com.fatwire.gst.foundation.groovy.spring.SpringDiskGroovyLoader
All Implemented Interfaces:
GroovyLoader, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware

public class SpringDiskGroovyLoader
extends org.springframework.web.context.support.WebApplicationObjectSupport
implements GroovyLoader

Loader for groovy script classes, configured via spring and ServletContext

Since:
Mar 28, 2011
Author:
Dolf Dijkstra

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Constructor Summary
SpringDiskGroovyLoader()
           
 
Method Summary
 String getConfigPath()
           
 int getMinimumRecompilationInterval()
           
protected  void initServletContext(javax.servlet.ServletContext servletContext)
           
 Object load(String name)
           
 void setConfigPath(String configPath)
           
 void setMinimumRecompilationInterval(int minimumRecompilationInterval)
          Sets the minimumRecompilationInterval of the GroovyScriptEngine configuration.
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpringDiskGroovyLoader

public SpringDiskGroovyLoader()
Method Detail

initServletContext

protected void initServletContext(javax.servlet.ServletContext servletContext)
Overrides:
initServletContext in class org.springframework.web.context.support.WebApplicationObjectSupport

load

public Object load(String name)
            throws Exception
Specified by:
load in interface GroovyLoader
Parameters:
name - the name of the class
Returns:
the Object loaded by Groovy
Throws:
Exception

getConfigPath

public String getConfigPath()
Returns:
the configPath

setConfigPath

public void setConfigPath(String configPath)
Parameters:
configPath - the configPath to set

getMinimumRecompilationInterval

public int getMinimumRecompilationInterval()
Returns:
the minimumRecompilationInterval

setMinimumRecompilationInterval

public void setMinimumRecompilationInterval(int minimumRecompilationInterval)
Sets the minimumRecompilationInterval of the GroovyScriptEngine configuration.

Parameters:
minimumRecompilationInterval - the minimumRecompilationInterval to set


Copyright © 2010-2013 Oracle Corporation. All Rights Reserved.