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
-
Method Summary
Modifier and TypeMethodDescriptiongetMethodCallSyntax
(String obj, String m, String... args) getNames()
getOutputStatement
(String value) getParameter
(String name) getProgram
(String... arg0) protected void
setEngineName
(String engineName) Set the engine name.protected void
setEngineVersion
(String engineVersion) Set the engine versionprotected void
setExtensions
(String... extensions) Set the extensionsprotected void
setMimeTypes
(String... mimeTypes) Set the mime typesprotected void
Set the namesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.script.ScriptEngineFactory
getLanguageName, getLanguageVersion, getScriptEngine
-
Constructor Details
-
AbstractScriptEngineFactory
protected AbstractScriptEngineFactory()
-
-
Method Details
-
getEngineName
- Specified by:
getEngineName
in interfaceScriptEngineFactory
- See Also:
-
setEngineName
Set the engine name.- Parameters:
engineName
- The new engine name
-
getEngineVersion
- Specified by:
getEngineVersion
in interfaceScriptEngineFactory
- See Also:
-
setEngineVersion
Set the engine version- Parameters:
engineVersion
- The version string
-
getExtensions
- Specified by:
getExtensions
in interfaceScriptEngineFactory
- See Also:
-
setExtensions
Set the extensions- Parameters:
extensions
- The array of extensions
-
getMimeTypes
- Specified by:
getMimeTypes
in interfaceScriptEngineFactory
- See Also:
-
setMimeTypes
Set the mime types- Parameters:
mimeTypes
- The array of mime types
-
getNames
- Specified by:
getNames
in interfaceScriptEngineFactory
- See Also:
-
setNames
Set the names- Parameters:
names
- The array of names.
-
getMethodCallSyntax
- Specified by:
getMethodCallSyntax
in interfaceScriptEngineFactory
- See Also:
-
getOutputStatement
- Specified by:
getOutputStatement
in interfaceScriptEngineFactory
- See Also:
-
getParameter
- Specified by:
getParameter
in interfaceScriptEngineFactory
- See Also:
-
getProgram
- Specified by:
getProgram
in interfaceScriptEngineFactory
- See Also:
-