{"id":2627,"date":"2023-04-04T00:44:57","date_gmt":"2023-04-03T16:44:57","guid":{"rendered":"https:\/\/lonelinerd.com\/?p=2627"},"modified":"2023-04-25T08:15:31","modified_gmt":"2023-04-25T00:15:31","slug":"design-pattern-proxy-pattern","status":"publish","type":"post","link":"https:\/\/lonelinerd.com\/index.php\/2023\/04\/04\/design-pattern-proxy-pattern\/","title":{"rendered":"\u8a2d\u8a08\u6a21\u5f0f\u7b46\u8a18 \u2013 \u4ee3\u7406\u6a21\u5f0f"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2627\" class=\"elementor elementor-2627\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-869b322 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"869b322\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-52a9d69\" data-id=\"52a9d69\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-fa1641d elementor-widget elementor-widget-text-editor\" data-id=\"fa1641d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<h4 class=\"md-end-block md-heading\"><span style=\"text-decoration: underline;\"><strong><span class=\"md-plain md-expand\">\u5206\u985e<\/span><\/strong><\/span><\/h4><ul><li>\u7d50\u69cb\u578b<\/li><\/ul><h4 class=\"md-end-block md-heading\"><span style=\"text-decoration: underline;\"><strong><span class=\"md-plain md-expand\">\u6a21\u5f0f\u7684\u76ee\u7684\uff08\u5b9a\u7fa9\uff09<\/span><\/strong><\/span><\/h4><ul><li>\u70ba\u67d0\u500b\u771f\u5be6\u7684\u5c0d\u8c61\u63d0\u4f9b\u4e00\u500b\u300c\u4ee3\u7406\u300d\/\u66ff\u8eab\uff0c\u5f9e\u800c\u63a7\u5236\u5c0d\u8a72\u771f\u5be6\u5c0d\u8c61\u7684\u8a2a\u554f<\/li><li>\u771f\u5be6\u5c0d\u8c61\u4e00\u822c\u662f\uff1a<ul><li>\u7db2\u7d61\/\u670d\u52d9\u7aef\u4e0a\u7684\u9060\u7a0b\u5c0d\u8c61 &#8211; \u9060\u7a0b\u4ee3\u7406<\/li><li>\u5275\u5efa\u958b\u92b7\u5927\u7684\u8cc7\u6e90\u5c0d\u8c61 &#8211; \u865b\u64ec\u4ee3\u7406<\/li><li>\u7b49\u7b49<\/li><\/ul><\/li><\/ul><h4 class=\"md-end-block md-heading\"><span style=\"text-decoration: underline;\"><strong><span class=\"md-plain md-expand\">\u4f7f\u7528\u5834\u666f\u4f8b\u5b50<\/span><\/strong><\/span><\/h4><ul><li>\u9060\u7a0b\u4ee3\u7406<ul><li>\u5275\u5efa\u4e00\u500bProtocolSystem\u985e\uff0c\u5ba2\u6236\u7aef\u7684\u6240\u6709\u5c0d\u8c61\u901a\u904e\u9019\u500b\u985e\u5411\u670d\u52d9\u7aef\u5c0d\u8c61\u767c\u9001\u8acb\u6c42<\/li><li>\u9019\u500b\u4ee3\u7406\u985e\u8ca0\u8cac\u4e86\u5354\u8b70\u7684\u5305\u88dd\uff0c\u8acb\u6c42\u8f49\u767c\u7b49\u7d30\u7bc0<\/li><\/ul><\/li><li>\u865b\u64ec\u4ee3\u7406<ul><li>\u5927\u958b\u92b7\u5c0d\u8c61\u7684\u5ef6\u9072\u5275\u5efa<ul><li>\u5982\uff1a\u5716\u50cf\u3001\u97f3\u983b\u7b49\u9700\u8981\u4e00\u6bb5\u6642\u9593\u52a0\u8f09\u7684\u8cc7\u6e90\u5c0d\u8c61<\/li><\/ul><\/li><li>\u5728\u8a72\u5c0d\u8c61\u5275\u5efa\u524d\/\u5275\u5efa\u6642\u626e\u6f14\u8a72\u5c0d\u8c61\u7684\u66ff\u8eab\uff0c\u63d0\u4f9b\u5c0d\u5916\u7684\u8a2a\u554f\u63a5\u53e3<ul><li>\u8a72\u8a2a\u554f\u63a5\u53e3\u88ab\u8abf\u7528\u6642\uff0c\u518d\u53bb\u5275\u5efa\u5927\u958b\u92b7\u5c0d\u8c61<\/li><li>\u5927\u958b\u92b7\u5c0d\u8c61\u88ab\u5275\u5efa\uff0c\u8a72\u8a2a\u554f\u63a5\u53e3\u5c31\u76f4\u63a5\u628a\u8a2a\u554f\u59d4\u6258\u7d66\u8a72\u5c0d\u8c61<\/li><\/ul><\/li><\/ul><\/li><\/ul><h4 class=\"md-end-block md-heading\"><span style=\"text-decoration: underline;\"><strong><span class=\"md-plain md-expand\">\u985e\u5716<\/span><\/strong><\/span><\/h4>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-884aa25 elementor-widget elementor-widget-image\" data-id=\"884aa25\" data-element_type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-image\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"384\" src=\"https:\/\/lonelinerd.com\/wp-content\/uploads\/2023\/04\/MYRIP1U9PBZG5XQ41H64M8T.png\" class=\"attachment-large size-large wp-image-2912\" alt=\"\" srcset=\"https:\/\/lonelinerd.com\/wp-content\/uploads\/2023\/04\/MYRIP1U9PBZG5XQ41H64M8T.png 818w, https:\/\/lonelinerd.com\/wp-content\/uploads\/2023\/04\/MYRIP1U9PBZG5XQ41H64M8T-300x141.png 300w, https:\/\/lonelinerd.com\/wp-content\/uploads\/2023\/04\/MYRIP1U9PBZG5XQ41H64M8T-768x361.png 768w\" sizes=\"auto, (max-width: 818px) 100vw, 818px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-32e9c7c elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"32e9c7c\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bfbd4c0\" data-id=\"bfbd4c0\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-e5d6094 elementor-widget-divider--view-line elementor-widget elementor-widget-divider\" data-id=\"e5d6094\" data-element_type=\"widget\" data-widget_type=\"divider.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"elementor-divider\">\n\t\t\t<span class=\"elementor-divider-separator\">\n\t\t\t\t\t\t<\/span>\n\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-707ee2d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"707ee2d\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-1afe6b1\" data-id=\"1afe6b1\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4554a6a elementor-widget elementor-widget-text-editor\" data-id=\"4554a6a\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<h4 class=\"md-end-block md-heading\"><span style=\"text-decoration: underline;\"><strong><span class=\"md-plain md-expand\">\u53c3\u8003\u66f8\u76ee<\/span><\/strong><\/span><\/h4><ul class=\"ul-list\" data-mark=\"-\"><li class=\"md-list-item md-focus-container\">\u300aHead First Design Patterns\u300bEric Freeman, Elisabeth Robson, Kathy Sierra, Bert Bates<\/li><\/ul>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>\u70ba\u67d0\u500b\u771f\u5be6\u7684\u5c0d\u8c61\u63d0\u4f9b\u4e00\u500b\u300c\u4ee3\u7406\u300d\/\u66ff\u8eab\uff0c\u5f9e\u800c\u63a7\u5236\u5c0d\u8a72\u771f\u5be6\u5c0d\u8c61\u7684\u8a2a\u554f<\/p>\n","protected":false},"author":1,"featured_media":947,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,26,18],"tags":[],"class_list":["post-2627","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-reading-notes","category-design-patterns","category-developing"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/lonelinerd.com\/wp-content\/uploads\/2021\/03\/FeatureCover_ReadingNotes.png","_links":{"self":[{"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/posts\/2627","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/comments?post=2627"}],"version-history":[{"count":27,"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/posts\/2627\/revisions"}],"predecessor-version":[{"id":2936,"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/posts\/2627\/revisions\/2936"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/media\/947"}],"wp:attachment":[{"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/media?parent=2627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/categories?post=2627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lonelinerd.com\/index.php\/wp-json\/wp\/v2\/tags?post=2627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}