Package org.apache.sling.scripting.api
Class AbstractScriptEngineFactory
java.lang.Object
org.apache.sling.scripting.api.AbstractScriptEngineFactory
- All Implemented Interfaces:
ScriptEngineFactory
- Direct Known Subclasses:
SightlyScriptEngineFactory
This abstract class can be used for own script engine
factory implementations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMethodCallSyntax(String obj, String m, String... args) getNames()getOutputStatement(String value) getParameter(String name) getProgram(String... arg0) protected voidsetEngineName(String engineName) Set the engine name.protected voidsetEngineVersion(String engineVersion) Set the engine versionprotected voidsetExtensions(String... extensions) Set the extensionsprotected voidsetMimeTypes(String... mimeTypes) Set the mime typesprotected voidSet the namesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.script.ScriptEngineFactory
getLanguageName, getLanguageVersion, getScriptEngine
-
Constructor Details
-
AbstractScriptEngineFactory
protected AbstractScriptEngineFactory()
-
-
Method Details
-
getEngineName
- Specified by:
getEngineNamein interfaceScriptEngineFactory- See Also:
-
setEngineName
Set the engine name.- Parameters:
engineName- The new engine name
-
getEngineVersion
- Specified by:
getEngineVersionin interfaceScriptEngineFactory- See Also:
-
setEngineVersion
Set the engine version- Parameters:
engineVersion- The version string
-
getExtensions
- Specified by:
getExtensionsin interfaceScriptEngineFactory- See Also:
-
setExtensions
Set the extensions- Parameters:
extensions- The array of extensions
-
getMimeTypes
- Specified by:
getMimeTypesin interfaceScriptEngineFactory- See Also:
-
setMimeTypes
Set the mime types- Parameters:
mimeTypes- The array of mime types
-
getNames
- Specified by:
getNamesin interfaceScriptEngineFactory- See Also:
-
setNames
Set the names- Parameters:
names- The array of names.
-
getMethodCallSyntax
- Specified by:
getMethodCallSyntaxin interfaceScriptEngineFactory- See Also:
-
getOutputStatement
- Specified by:
getOutputStatementin interfaceScriptEngineFactory- See Also:
-
getParameter
- Specified by:
getParameterin interfaceScriptEngineFactory- See Also:
-
getProgram
- Specified by:
getProgramin interfaceScriptEngineFactory- See Also:
-