Design pattern - agent pattern

proxy pattern Proxy Pattern refers to providing a proxy for other objects to control access to this object. It belongs to structural pattern. In some cases, an object is inappropriate or cannot directly reference another object, and the proxy object can act as an intermediary between the client and the target object. The agent mode generally ...

Posted by dave_c00 on Thu, 30 Dec 2021 02:07:16 +0100

Dynamic agent mode

Proxy pattern is a common design pattern in Java development. The design purpose is to insert other functions between service class and customer class. The inserted functions are transparent to the caller and play the role of camouflage control 1. Static proxy mode Characteristics of static agent 1. Target role fixed 2. Get the target rol ...

Posted by wildcolour on Tue, 21 Dec 2021 03:18:45 +0100

webpack advanced application: devServer

In the development environment, we often need to start a web service to facilitate us to simulate a user to access our web service from the browser and read our packaged products to observe the performance of our code on the client. Webpack 5 has such a built-in function. We only need a simple configuration to turn it on. Before that, we ne ...

Posted by konrados on Mon, 06 Dec 2021 05:51:43 +0100