Interface RenderContext
-
@ProviderType public interface RenderContextTheRenderContextdefines the context for executing HTL scripts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Objectcall(java.lang.String functionName, java.lang.Object... arguments)Call one of the registeredRuntimeExtensions.javax.script.BindingsgetBindings()Returns the map of script bindings available to HTL scripts.RuntimeObjectModelgetObjectModel()Provides theRuntimeObjectModelthat will be used for resolving objects' properties or type conversion / coercion.
-
-
-
Method Detail
-
getObjectModel
RuntimeObjectModel getObjectModel()
Provides theRuntimeObjectModelthat will be used for resolving objects' properties or type conversion / coercion.- Returns:
- the RuntimeObjectModel
-
getBindings
javax.script.Bindings getBindings()
Returns the map of script bindings available to HTL scripts.- Returns:
- the global bindings for a script
-
call
java.lang.Object call(java.lang.String functionName, java.lang.Object... arguments)Call one of the registeredRuntimeExtensions.- Parameters:
functionName- the name under which the extension is registeredarguments- the extension's arguments- Returns:
- the
RuntimeExtension's result
-
-