com.fatwire.gst.foundation.groovy.spring
Class SpringDiskGroovyLoader
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
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
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport |
logger |
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 |
SpringDiskGroovyLoader
public SpringDiskGroovyLoader()
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.