Package org.keycloak.scripting
Class InvocableScriptAdapter
java.lang.Object
org.keycloak.scripting.InvocableScriptAdapter
- All Implemented Interfaces:
 Invocable
Wraps a 
ScriptModel and makes it Invocable.- Author:
 - Thomas Darimont
 
- 
Constructor Summary
ConstructorsConstructorDescriptionInvocableScriptAdapter(ScriptModel scriptModel, ScriptEngine scriptEngine) Creates a newInvocableScriptAdapterinstance. - 
Method Summary
Modifier and TypeMethodDescription<T> TgetInterface(Class<T> clazz) <T> TgetInterface(Object thiz, Class<T> clazz) invokeFunction(String name, Object... args) invokeMethod(Object thiz, String name, Object... args) booleanReturns true if theScriptEnginehas a definition with the givenname. 
- 
Constructor Details
- 
InvocableScriptAdapter
Creates a newInvocableScriptAdapterinstance.- Parameters:
 scriptModel- must not be nullscriptEngine- must not be null
 
 - 
 - 
Method Details
- 
invokeMethod
public Object invokeMethod(Object thiz, String name, Object... args) throws ScriptExecutionException - Specified by:
 invokeMethodin interfaceInvocable- Throws:
 ScriptExecutionException
 - 
invokeFunction
- Specified by:
 invokeFunctionin interfaceInvocable- Throws:
 ScriptExecutionException
 - 
getInterface
- Specified by:
 getInterfacein interfaceInvocable
 - 
getInterface
- Specified by:
 getInterfacein interfaceInvocable
 - 
isDefined
Returns true if theScriptEnginehas a definition with the givenname.- Parameters:
 name-- Returns:
 
 
 -