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 SummaryConstructors
- 
Method SummaryModifier 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.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.script.ScriptEngineFactorygetLanguageName, getLanguageVersion, getScriptEngine
- 
Constructor Details- 
AbstractScriptEngineFactoryprotected AbstractScriptEngineFactory()
 
- 
- 
Method Details- 
getEngineName- Specified by:
- getEngineNamein interface- ScriptEngineFactory
- See Also:
 
- 
setEngineNameSet the engine name.- Parameters:
- engineName- The new engine name
 
- 
getEngineVersion- Specified by:
- getEngineVersionin interface- ScriptEngineFactory
- See Also:
 
- 
setEngineVersionSet the engine version- Parameters:
- engineVersion- The version string
 
- 
getExtensions- Specified by:
- getExtensionsin interface- ScriptEngineFactory
- See Also:
 
- 
setExtensionsSet the extensions- Parameters:
- extensions- The array of extensions
 
- 
getMimeTypes- Specified by:
- getMimeTypesin interface- ScriptEngineFactory
- See Also:
 
- 
setMimeTypesSet the mime types- Parameters:
- mimeTypes- The array of mime types
 
- 
getNames- Specified by:
- getNamesin interface- ScriptEngineFactory
- See Also:
 
- 
setNamesSet the names- Parameters:
- names- The array of names.
 
- 
getMethodCallSyntax- Specified by:
- getMethodCallSyntaxin interface- ScriptEngineFactory
- See Also:
 
- 
getOutputStatement- Specified by:
- getOutputStatementin interface- ScriptEngineFactory
- See Also:
 
- 
getParameter- Specified by:
- getParameterin interface- ScriptEngineFactory
- See Also:
 
- 
getProgram- Specified by:
- getProgramin interface- ScriptEngineFactory
- See Also:
 
 
-