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

Property-driven onRefresh exit for AppCDS purpose #31595

Closed
sdeleuze opened this issue Nov 13, 2023 · 0 comments
Closed

Property-driven onRefresh exit for AppCDS purpose #31595

sdeleuze opened this issue Nov 13, 2023 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@sdeleuze
Copy link
Contributor

sdeleuze commented Nov 13, 2023

Similar to what has been done for CRaC with #30606, this issue is about introducing a -Dspring.context.exit=onRefresh property in order to allow to automatically exit from the JVM at onRefresh phase. This is useful when building the AppCDS cache (see also #31497 related issue).

@sdeleuze sdeleuze added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Nov 13, 2023
@sdeleuze sdeleuze added this to the 6.1.0 milestone Nov 13, 2023
@sdeleuze sdeleuze self-assigned this Nov 13, 2023
sdeleuze added a commit to sdeleuze/spring-framework that referenced this issue Nov 13, 2023
This commit allows to terminates the JVM when the
-Dspring.context.exit=onRefresh property is set,
which can be useful for AppCDS training run in order
to get most of the AppCDS cache without starting the
beans.

Closes spring-projectsgh-31595
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant