Package org.apereo.cas.util.scripting
Class GroovyShellScript
- java.lang.Object
-
- org.apereo.cas.util.scripting.GroovyShellScript
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ExecutableCompiledGroovyScript
public class GroovyShellScript extends java.lang.Object implements ExecutableCompiledGroovyScript
This isGroovyShellScript.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description GroovyShellScript(java.lang.String script)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, java.lang.Object... args)Execute t.voidsetBinding(java.util.Map<java.lang.String,java.lang.Object> variables)Sets binding.java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apereo.cas.util.scripting.ExecutableCompiledGroovyScript
close
-
-
-
-
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)
Description copied from interface:ExecutableCompiledGroovyScriptExecute.- 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
-
setBinding
public void setBinding(java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:ExecutableCompiledGroovyScriptSets binding.- Specified by:
setBindingin interfaceExecutableCompiledGroovyScript- Parameters:
variables- the args
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-