Static and dynamic agent Proxy difference

Read the following information today. Roughly a clear difference between static and dynamic proxy proxy
proxy mode, there are two: 1 static proxy 2. Proxy dynamic
individuals but do not understand the most important:
the static agent: is before java compiler file, manually written proxy class object. Such agents only a class of objects, i.e., a type of the interface class.
Dynamic agent: This is reflected by the principle, when the program is run to generate dynamic proxy object, the proxy can be any class object.

 

 

Reference:
https://www.cnblogs.com/baizhanshi/p/6611164.html

Guess you like

Origin www.cnblogs.com/yibuyi-123/p/11816869.html