Class AbstractScriptEngineFactory

    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
    • Constructor Detail

      • AbstractScriptEngineFactory

        public AbstractScriptEngineFactory()
    • Method Detail

      • getScriptTypes

        public List<String> getScriptTypes()
        Description copied from interface: ScriptEngineFactory
        This method returns a list of file extensions and MimeTypes that are supported by the ScriptEngine, e.g. py, application/python, js, application/javascript, etc.
        Specified by:
        getScriptTypes in interface ScriptEngineFactory
        Returns:
        List of supported script types
      • createScriptEngine

        public @Nullable ScriptEngine createScriptEngine​(String scriptType)
        Description copied from interface: ScriptEngineFactory
        This method creates a new ScriptEngine based on the supplied file extension or MimeType.
        Specified by:
        createScriptEngine in interface ScriptEngineFactory
        Parameters:
        scriptType - a file extension (script) or MimeType (ScriptAction or ScriptCondition)
        Returns:
        ScriptEngine or null