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
ConstructorDescriptionRenderContextImpl
(SightlyEngineConfiguration configuration, ExtensionRegistryService extensionRegistryService, ScriptContext scriptContext) -
Method Summary
Modifier and TypeMethodDescriptionCall one of the registeredRuntimeExtension
s.Provide the bindings for this scriptProvides theRuntimeObjectModel
that 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:RenderContext
Provides theRuntimeObjectModel
that will be used for resolving objects' properties or type conversion / coercion.- Specified by:
getObjectModel
in interfaceRenderContext
- Returns:
- the RuntimeObjectModel
-
getBindings
Provide the bindings for this script- Specified by:
getBindings
in interfaceRenderContext
- Returns:
- - the list of global bindings available to the script
-
call
Description copied from interface:RenderContext
Call one of the registeredRuntimeExtension
s.- Specified by:
call
in interfaceRenderContext
- Parameters:
functionName
- the name under which the extension is registeredarguments
- the extension's arguments- Returns:
- the
RuntimeExtension
's result
-