Class AbstractScriptingStyleFactory

    • Constructor Detail

      • AbstractScriptingStyleFactory

        public AbstractScriptingStyleFactory()
    • Method Detail

      • getScriptEngine

        protected abstract ScriptEngine getScriptEngine()
        Returns the script engine to be used.
        Returns:
        the script engine to be used.
        Since:
        8.1.0
      • createDynamicStyle

        public IStyle createDynamicStyle​(String styleString,
                                         String stylePath,
                                         List<ITheme> themes)
                                  throws PortalException
        Description copied from interface: IStyleFactory
        Creates a dynamic version of the requested style using the given style text.
        Specified by:
        createDynamicStyle in interface IStyleFactory
        Parameters:
        styleString - the style text.
        stylePath - the style path.
        themes - the current applied themes.
        Returns:
        a dynamic version of the requested style using the given style text.
        Throws:
        PortalException
      • createCompiledStyle

        protected IStyle createCompiledStyle​(CompiledScript compiledScript)
        Creates a new instance of a style with the given compiled script.
        Parameters:
        compiledScript - the compiled script.
        Returns:
        a new instance of a style with the given compiled script.
        Since:
        8.1.0
      • createStyle

        protected IStyle createStyle​(String style,
                                     ScriptEngine engine)
        Creates a new instance of a style with the given script and engine.
        Parameters:
        style - the style script.
        engine - the script engine to be used.
        Returns:
        a new instance of a style with the given compiled script.
        Since:
        8.1.0