Package org.apereo.cas.util.scripting
Class WatchableGroovyScriptResource
- java.lang.Object
-
- org.apereo.cas.util.scripting.WatchableGroovyScriptResource
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ExecutableCompiledGroovyScript
public class WatchableGroovyScriptResource extends java.lang.Object implements ExecutableCompiledGroovyScript
This isWatchableGroovyScriptResource.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description WatchableGroovyScriptResource(org.springframework.core.io.Resource script)WatchableGroovyScriptResource(org.springframework.core.io.Resource script, boolean enableWatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidexecute(java.lang.Object[] args)Execute.<T> Texecute(java.lang.Object[] args, java.lang.Class<T> clazz)Execute t.<T> Texecute(java.lang.Object[] args, java.lang.Class<T> clazz, boolean failOnError)Execute t.<T> Texecute(java.lang.String methodName, java.lang.Class<T> clazz, boolean failOnError, java.lang.Object... args)Execute.<T> Texecute(java.lang.String methodName, java.lang.Class<T> clazz, java.lang.Object... args)Execute t.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apereo.cas.util.scripting.ExecutableCompiledGroovyScript
setBinding
-
-
-
-
Method Detail
-
execute
public <T> T execute(java.lang.Object[] args, java.lang.Class<T> clazz)Description copied from interface:ExecutableCompiledGroovyScriptExecute t.- Specified by:
executein interfaceExecutableCompiledGroovyScript- Type Parameters:
T- the type parameter- Parameters:
args- the argsclazz- the clazz- Returns:
- the t
-
execute
public void execute(java.lang.Object[] args)
Execute.- Specified by:
executein interfaceExecutableCompiledGroovyScript- Parameters:
args- the args
-
execute
public <T> T execute(java.lang.Object[] args, java.lang.Class<T> clazz, boolean failOnError)Description copied from interface:ExecutableCompiledGroovyScriptExecute t.- Specified by:
executein interfaceExecutableCompiledGroovyScript- Type Parameters:
T- the type parameter- Parameters:
args- the argsclazz- the clazzfailOnError- the fail on error- Returns:
- the t
-
execute
public <T> T execute(java.lang.String methodName, java.lang.Class<T> clazz, java.lang.Object... args)Description copied from interface:ExecutableCompiledGroovyScriptExecute t.- Specified by:
executein interfaceExecutableCompiledGroovyScript- Type Parameters:
T- the type parameter- Parameters:
methodName- the method nameclazz- the clazzargs- the args- Returns:
- the t
-
execute
public <T> T execute(java.lang.String methodName, java.lang.Class<T> clazz, boolean failOnError, java.lang.Object... args)Execute.- Type Parameters:
T- the type parameter- Parameters:
methodName- the method nameclazz- the clazzfailOnError- the fail on errorargs- the args- Returns:
- the t
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfaceExecutableCompiledGroovyScript
-
-