Design Patterns Study Notes 13 - Java version of the proxy mode

1. proxy mode

1.1 Basic Introduction

  1. Proxy mode: provide a substitute for an object to control access to this object . That is accessed by the target through a proxy object benefits of doing so are: On the basis of the target object can be achieved on the enhanced additional functionality operation, namely the expansion of the target object features.
  2. The proxy object can be remote objects, creating large overhead objects or require security control of objects
  3. There are different forms of proxy mode, there are three main static agents, dynamic agent (JDK proxy interface agent) and Cglib agent (you can create objects in dynamic memory without the need to implement the interface, he belongs to the category of dynamic proxies)
    Here Insert Picture Description
Published 39 original articles · won praise 11 · views 1990

Guess you like

Origin blog.csdn.net/liyang_007/article/details/104449415