public class SlingHTLMasterCompiler extends Object
| Constructor and Description |
|---|
SlingHTLMasterCompiler() |
| Modifier and Type | Method and Description |
|---|---|
SightlyCompiledScript |
compileHTLScript(SightlyScriptEngine engine,
Reader script,
ScriptContext scriptContext) |
ClassLoader |
getClassLoader() |
Object |
getResourceBackedUseObject(org.apache.sling.scripting.sightly.render.RenderContext renderContext,
String className)
This method returns an Object instance based on a
Resource-backed class that is either found through regular classloading
mechanisms or on-the-fly compilation. |
public Object getResourceBackedUseObject(org.apache.sling.scripting.sightly.render.RenderContext renderContext, String className)
Resource-backed class that is either found through regular classloading
mechanisms or on-the-fly compilation. In case the requested class does not denote a fully qualified class name, this service will
try to find the class through Sling's resource resolution mechanism and compile the class on-the-fly if required.renderContext - the render contextclassName - name of class to use for object instantiationnull if the specified class is not backed by a Resourcepublic SightlyCompiledScript compileHTLScript(SightlyScriptEngine engine, Reader script, ScriptContext scriptContext) throws ScriptException
ScriptExceptionpublic ClassLoader getClassLoader()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.