Package com.illumon.iris.db.util
Class SourceClosure
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.lang.Closure<Object>
com.illumon.iris.db.util.SourceClosure
- All Implemented Interfaces:
groovy.lang.GroovyCallable<Object>
,groovy.lang.GroovyObject
,Serializable
,Cloneable
,Runnable
,Callable<Object>
public class SourceClosure extends groovy.lang.Closure<Object>
This class represents uses of the source() and sourceOnce() method calls. It will use the underlying scriptPathLoader
to get the script text to use.
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description SourceClosure(IrisDbGroovySession groovySession, ScriptPathLoader scriptPathLoader, boolean sourceOnce, boolean caching)
-
Method Summary
Modifier and Type Method Description String
call(Object... args)
void
clearCache()
ScriptPathLoader
getPathLoader()
Methods inherited from class groovy.lang.Closure
andThen, andThenSelf, andThenSelf, asWritable, call, call, clone, compose, composeSelf, composeSelf, curry, curry, dehydrate, getDelegate, getDirective, getMaximumNumberOfParameters, getOwner, getParameterTypes, getProperty, getResolveStrategy, getThisObject, isCase, leftShift, leftShift, memoize, memoizeAtLeast, memoizeAtMost, memoizeBetween, ncurry, ncurry, rcurry, rcurry, rehydrate, rightShift, run, setDelegate, setDirective, setProperty, setResolveStrategy, throwRuntimeException, trampoline, trampoline
-
Constructor Details
-
SourceClosure
public SourceClosure(IrisDbGroovySession groovySession, ScriptPathLoader scriptPathLoader, boolean sourceOnce, boolean caching)
-
-
Method Details
-
call
- Overrides:
call
in classgroovy.lang.Closure<Object>
-
clearCache
public void clearCache() -
getPathLoader
-