Skip to content

Register runtime hints for @ContextConfiguration attributes #29021

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

Closed
3 tasks done
sbrannen opened this issue Aug 26, 2022 · 0 comments
Closed
3 tasks done

Register runtime hints for @ContextConfiguration attributes #29021

sbrannen opened this issue Aug 26, 2022 · 0 comments
Assignees
Labels
in: test Issues in the test module theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Milestone

Comments

@sbrannen
Copy link
Member

sbrannen commented Aug 26, 2022

We need to register runtime hints for the following attributes in @ContextConfiguration.

  • locations with classpath: prefix
  • initializers
  • loader
@sbrannen sbrannen added in: test Issues in the test module type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Aug 26, 2022
@sbrannen sbrannen added this to the 6.0.0-M6 milestone Aug 26, 2022
@sbrannen sbrannen self-assigned this Aug 26, 2022
@sbrannen sbrannen changed the title Register runtime hints for @ContextConfiguration Register runtime hints for @ContextConfiguration attributes Aug 30, 2022
sbrannen added a commit to sbrannen/spring-framework that referenced this issue Sep 2, 2022
This commit moves the registration of runtime hints for ContextLoaders
from TestContextRuntimeHints to TestContextAotGenerator.

This allows for automatic registration of any ContextLoader used,
including custom loaders declared via the `loader` attribute in
@ContextConfiguration.

See spring-projectsgh-29021
sbrannen added a commit to sbrannen/spring-framework that referenced this issue Sep 2, 2022
This commit introduces automatic registration of runtime hints for
ApplicationContextInitializers configured via the `initializers`
attribute in @ContextConfiguration.

See spring-projectsgh-29021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: test Issues in the test module theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant