문제

Can anyone please tell me where dynamic proxies (the bytecode) generated by the Spring framework are stored/held?

On the filesystem? In memory?

도움이 되었습니까?

해결책

It is in memory - there is no bytecode enhancement of the class, but essentially a wrapper is created which intercepts all method calls to the wrapped class and delegates the calls to an InvocationHandler .

http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/Proxy.html http://docs.oracle.com/javase/7/docs/api/java/lang/reflect/InvocationHandler.html

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top