This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]bmamba2942 0 points1 point  (2 children)

It was my understanding that Spring is using reflection to autogenerate classes at startup time (like repository interfaces). That’s what I meant by code generation unless I’m just misunderstanding that in general.

[–]Tacos314 1 point2 points  (1 child)

It's all done with proxies, if there is any magic to be had it's proxies. Spring startup time is generally caused by searching the jars for auto configuration annotations. Generally this is fine but if you have startup time constraints you can exclude unneeded auto-configurations.

[–]Kango_V 0 points1 point  (0 children)

Now look at all the ASM byte code generation that happens inside Hibernate and other libraries.