5 ms·
In the past, I've used Introspector API [1] for property reflection. It's part of the JDK, and provides a lot of the caching this article is talking about. Doub
by joemag 9y ago
In the past, I've used Introspector API [1] for property reflection. It's part of the JDK, and provides a lot of the caching this article is talking about. Doubt this would provide the same level of improvement as adding the direct children() method, or even ASM based approaches, but it's certainly faster than naked reflection.
[1] https://docs.oracle.com/javase/7/docs/api/java/beans/Introspector.html https://docs.oracle.com/javase/7/docs/api/java/beans/Introsp...