Class RenderContextImpl
java.lang.Object
org.apache.sling.scripting.sightly.impl.engine.runtime.RenderContextImpl
- All Implemented Interfaces:
RenderContext
Rendering context for HTL rendering units.
-
Constructor Summary
ConstructorsConstructorDescriptionRenderContextImpl(SightlyEngineConfiguration configuration, ExtensionRegistryService extensionRegistryService, ScriptContext scriptContext) -
Method Summary
Modifier and TypeMethodDescriptionCall one of the registeredRuntimeExtensions.Provide the bindings for this scriptProvides theRuntimeObjectModelthat will be used for resolving objects' properties or type conversion / coercion.
-
Constructor Details
-
RenderContextImpl
public RenderContextImpl(SightlyEngineConfiguration configuration, ExtensionRegistryService extensionRegistryService, ScriptContext scriptContext)
-
-
Method Details
-
getObjectModel
Description copied from interface:RenderContextProvides theRuntimeObjectModelthat will be used for resolving objects' properties or type conversion / coercion.- Specified by:
getObjectModelin interfaceRenderContext- Returns:
- the RuntimeObjectModel
-
getBindings
Provide the bindings for this script- Specified by:
getBindingsin interfaceRenderContext- Returns:
- - the list of global bindings available to the script
-
call
Description copied from interface:RenderContextCall one of the registeredRuntimeExtensions.- Specified by:
callin interfaceRenderContext- Parameters:
functionName- the name under which the extension is registeredarguments- the extension's arguments- Returns:
- the
RuntimeExtension's result
-