Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differentiate between immediate evaluation at load time and deferred evaluation when getting the configuration. #226

Closed
credmond-git opened this issue Oct 31, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@credmond-git
Copy link
Collaborator

credmond-git commented Oct 31, 2024

We need to differentiate between immediate evaluation at load time and deferred evaluation when getting the configuration.

https://jakarta.ee/specifications/expression-language/6.0/jakarta-expression-language-spec-6.0#eval-expressions

the ${expr} construct for immediate evaluation and the #{expr} construct for deferred evaluation. This difference in delimiters points out the semantic differences between the two expression types in the Jakarta EE web tier. Expressions delimited by #{} are said to use “deferred evaluation” because the expression is not evaluated until its value is needed by the system. Expressions delimited by ${} are said to use “immediate evaluation” because the expression is compiled when the JSP page is compiled and it is executed when the JSP page is executed. More on this in Section 1.2.4, “Syntax restrictions”.

We will need to use the noCache metadata so we do not cache results and get a new value each time.

@credmond-git credmond-git added the enhancement New feature or request label Oct 31, 2024
@credmond-git credmond-git self-assigned this Oct 31, 2024
@credmond-git credmond-git added this to the Gestalt 1.0 milestone Nov 16, 2024
credmond-git added a commit that referenced this issue Nov 16, 2024
…ferred evaluation when getting the configuration. #226
credmond-git added a commit that referenced this issue Nov 16, 2024
…itution

feat:  Differentiate between immediate evaluation at load time and deferred evaluation when getting the configuration. #226
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant