Interface ComponentHelper.VariablesScope

All Superinterfaces:
AutoCloseable
Enclosing class:
ComponentHelper

public static interface ComponentHelper.VariablesScope extends AutoCloseable
Represents scoped EL variables. When closed, the original values of the variables are restored.
Since:
8.5.3
Author:
XIMA MEDIA GmbH
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Restores the previous mapping of the variable.
    Gets the previous values of the variables before they were overridden by this scope.
  • Method Details

    • close

      void close()
      Restores the previous mapping of the variable.
      Specified by:
      close in interface AutoCloseable
    • getPreviousValues

      Map<String,Object> getPreviousValues()
      Gets the previous values of the variables before they were overridden by this scope. If the variable did not exist before, the map contains no entry for that variable.
      Returns:
      The previous values of the variables.