Class SpringStandardExpressions


  • public final class SpringStandardExpressions
    extends Object

    Utility class for the easy obtention of objects relevant to the parsing and execution of Thymeleaf Spring-Standard Expressions (Thymeleaf Standard Expressions based using Spring EL as a base expression language).

    Since:
    3.0.3
    Author:
    Daniel Fernández
    • Field Detail

      • ENABLE_SPRING_EL_COMPILER_ATTRIBUTE_NAME

        public static final String ENABLE_SPRING_EL_COMPILER_ATTRIBUTE_NAME
        Name used for registering whether Spring EL compilation should be enabled if available or not.
        See Also:
        Constant Field Values
    • Method Detail

      • isSpringELCompilerEnabled

        public static boolean isSpringELCompilerEnabled​(org.thymeleaf.IEngineConfiguration configuration)

        Check whether compilation of Spring EL expressions should be enabled or not.

        This is done through configuration methods at the SpringStandardDialect instance being used, and its value is offered to the engine as an execution attribute.

        Parameters:
        configuration - the configuration object for the current template execution environment.
        Returns:
        true if the SpEL compiler should be enabled if available, false if not.