-
Notifications
You must be signed in to change notification settings - Fork 350
Reduce the need for reflection by using functional configuration #386
Comments
This commit is a refactoring that turns the remaining static configuration files into proper annotation-based hints. It also removes the functional mode which is not something we want to maintain as it is. Refining the hints trigger combined with future build time transformation such as spring-atticgh-386 should provide the same functionality implicitly. The rsocket sample is broken, the allowUnsafeAccess defined in the hints seems not taken in account. Closes spring-atticgh-216 Closes spring-atticgh-347
See related spring-projects/spring-framework#18353 (comment) comment. |
So I'm a bit confused, will Spring-Init be merged with the AOT Plugin, or remain separate? I notice it hasn't been updated in a while. |
Many of the ideas in Spring Init have been incorporated into the AOT plugin. It's not clear that Spring Init is adding very much at this point, so I suppose the answer is "we don't know". It might be slightly faster in a regular JVM still, but that's without doing much optimization of the AOT generated code. If you are actually using Spring Init and would like to provide feedback, no decision has been made, so go ahead. |
The first bits have been introduced in https://github.com/spring-projects-experimental/spring-native/tree/0.11.x with the AOT generation of a
I will create more fine grained issues to track our progresses. |
Let's close this one as the base mechanism is now used and continue with more 0.11 fine grained issues as we migrate other samples. |
Leveraging @dsyer work on https://github.com/spring-projects-experimental/spring-init. The scope is not to be 100% reflection-less but rather to limit the amount of reflection to lower the footprint and increase the compatibility. Reflection will typically remain for
@Controller
etc.The text was updated successfully, but these errors were encountered: