Can anyone please tell me where dynamic proxies (the bytecode) generated by the Spring framework are stored/held?
On the filesystem? In memory?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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