Interface RenderContext


  • @ProviderType
    public interface RenderContext
    The RenderContext defines the context for executing HTL scripts.
    • Method Detail

      • getObjectModel

        RuntimeObjectModel getObjectModel()
        Provides the RuntimeObjectModel that 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 registered RuntimeExtensions.
        Parameters:
        functionName - the name under which the extension is registered
        arguments - the extension's arguments
        Returns:
        the RuntimeExtension's result