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

Provide a bean instance descriptor API #27922

Closed
snicoll opened this issue Jan 11, 2022 · 1 comment
Closed

Provide a bean instance descriptor API #27922

snicoll opened this issue Jan 11, 2022 · 1 comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: declined A suggestion or change that we don't feel we should currently apply theme: aot An issue related to Ahead-of-time processing type: enhancement A general enhancement

Comments

@snicoll
Copy link
Member

snicoll commented Jan 11, 2022

Introspecting a type at build-time allows us to detect things that we typically do at runtime:

  • Executable to use.
  • Injection points to honor (typically @Autowired).
  • Property values to inject, as defined on the BeanDefinition.
  • Initialization and destruction callback

Offering an API that uses the same algorithm as a traditional runtime is important to keep the behavior consistent. This enhancement is further refined as follows:

@snicoll snicoll added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement theme: aot An issue related to Ahead-of-time processing labels Jan 11, 2022
@snicoll snicoll added this to the 6.0.0-M3 milestone Jan 11, 2022
@snicoll
Copy link
Member Author

snicoll commented Feb 14, 2022

We've refactored things so that creating such a unified context is necessary. Rather, each post processor is free to express that it wants to contribute to the bean instance. This makes for a much more flexible setup.

@snicoll snicoll closed this as completed Feb 14, 2022
@snicoll snicoll removed this from the 6.0.0-M3 milestone Feb 14, 2022
@snicoll snicoll added the status: declined A suggestion or change that we don't feel we should currently apply label Feb 14, 2022
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) status: declined A suggestion or change that we don't feel we should currently apply 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