摘要:
1. 通过setAccessible关闭安全检查,关闭的目的不是因为访问的field/method是私有的,而且因为关闭后访问公有方法也不会再有安全检查. 2.把已经查找好的method/field 缓存起来,毕竟类的结构一般是不会变化的. 阅读全文
摘要:
from https://opencredo.com/lambda-memoization-in-java-8/ Memoization is a technique whereby we trade memory for execution speed. Suppose you have a fu 阅读全文
摘要:
from https://opencredo.com/new-tricks-with-dynamic-proxies-in-java-8-part-3/ In this post, the last in the New Tricks With Dynamic Proxies series (see 阅读全文
摘要:
from https://opencredo.com/dynamic-proxies-java-part-2/ Consider an instance of java.reflection.InvocationHandler that simply passes every method call 阅读全文
摘要:
from https://opencredo.com/dynamic-proxies-java/ Dynamic proxies have been a feature of Java since version 1.3. They were widely used in J2EE for remo 阅读全文