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>
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:
-
Field Summary
Fields inherited from class groovy.lang.Closure
DELEGATE_FIRST, DELEGATE_ONLY, DONE, IDENTITY, maximumNumberOfParameters, OWNER_FIRST, OWNER_ONLY, parameterTypes, SKIP, TO_SELF
-
Constructor Summary
ConstructorsConstructorDescriptionSourceClosure
(IrisDbGroovySession groovySession, ScriptPathLoader scriptPathLoader, boolean sourceOnce, boolean caching) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
Methods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClass
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface groovy.lang.GroovyObject
invokeMethod
-
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
-