{"id":216948,"date":"2021-05-08T08:43:09","date_gmt":"2021-05-08T00:43:09","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=216948"},"modified":"2021-04-25T09:44:41","modified_gmt":"2021-04-25T01:44:41","slug":"overview-of-javas","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/overview-of-javas.html","title":{"rendered":"JAVA\u4e4b\u95e8\u9762\u6a21\u5f0f\u6982\u8ff0"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u95e8\u9762\u6a21\u5f0f\uff08Facade Pattern\uff09\u4e5f\u53eb\u505a\u5916\u89c2\u6a21\u5f0f\uff0c\u662f\u4e00\u79cd\u6bd4\u8f83\u5e38\u7528\u7684\u5c01\u88c5\u6a21\u5f0f\uff0c\u8981\u6c42\u4e00\u4e2a\u5b50\u7cfb\u7edf\u7684\u5916\u90e8\u4e0e\u5176\u5185\u90e8\u7684\u901a\u4fe1\u5fc5\u987b\u901a\u8fc7\u4e00\u4e2a\u7edf\u4e00\u7684\u5bf9\u8c61\u8fdb\u884c\u3002\u95e8\u9762\u6a21\u5f0f\u63d0\u4f9b\u4e00\u4e2a\u9ad8\u5c42\u6b21\u7684\u63a5\u53e3\uff0c\u4f7f\u5f97\u5b50\u7cfb\u7edf\u66f4\u6613\u4e8e\u4f7f\u7528\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
\u533b\u9662\u7684\u4f8b\u5b50<\/strong><\/div>\n

\u73b0\u4ee3\u7684\u8f6f\u4ef6\u7cfb\u7edf\u90fd\u662f\u6bd4\u8f83\u590d\u6742\u7684\uff0c\u8bbe\u8ba1\u5e08\u5904\u7406\u590d\u6742\u7cfb\u7edf\u7684\u4e00\u4e2a\u5e38\u89c1\u65b9\u6cd5\u4fbf\u662f\u5c06\u5176\"\u5206\u800c\u6cbb\u4e4b\"\uff0c\u628a\u4e00\u4e2a\u7cfb\u7edf\u5212\u5206\u4e3a\u51e0\u4e2a\u8f83\u5c0f\u7684\u5b50\u7cfb\u7edf\u3002\u5982\u679c\u628a\u533b\u9662\u4f5c\u4e3a\u4e00\u4e2a\u5b50\u7cfb\u7edf\uff0c\u6309\u7167\u90e8\u95e8\u804c\u80fd\uff0c\u8fd9\u4e2a\u7cfb\u7edf\u53ef\u4ee5\u5212\u5206\u4e3a\u6302\u53f7\u3001\u95e8\u8bca\u3001\u5212\u4ef7\u3001\u5316\u9a8c\u3001\u6536\u8d39\u3001\u53d6\u836f\u7b49\u3002\u770b\u75c5\u7684\u75c5\u4eba\u8981\u4e0e\u8fd9\u4e9b\u90e8\u95e8\u6253\u4ea4\u9053\uff0c\u5c31\u5982\u540c\u4e00\u4e2a\u5b50\u7cfb\u7edf\u7684\u5ba2\u6237\u7aef\u4e0e\u4e00\u4e2a\u5b50\u7cfb\u7edf\u7684\u5404\u4e2a\u7c7b\u6253\u4ea4\u9053\u4e00\u6837\uff0c\u4e0d\u662f\u4e00\u4ef6\u5bb9\u6613\u7684\u4e8b\u60c5\u3002<\/p>\n

\u9996\u5148\u75c5\u4eba\u5fc5\u987b\u5148\u6302\u53f7\uff0c\u7136\u540e\u95e8\u8bca\u3002\u5982\u679c\u533b\u751f\u8981\u6c42\u5316\u9a8c\uff0c\u75c5\u4eba\u5fc5\u987b\u9996\u5148\u5212\u4ef7\uff0c\u7136\u540e\u7f34\u8d39\uff0c\u624d\u53ef\u4ee5\u5230\u5316\u9a8c\u90e8\u95e8\u505a\u5316\u9a8c\u3002\u5316\u9a8c\u540e\u518d\u56de\u5230\u95e8\u8bca\u5ba4\u3002
\n\"\"<\/p>\n

\u4e0a\u56fe\u63cf\u8ff0\u7684\u662f\u75c5\u4eba\u5728\u533b\u9662\u91cc\u7684\u4f53\u9a8c\uff0c\u56fe\u4e2d\u7684\u65b9\u6846\u4ee3\u8868\u533b\u9662\u3002
\n\u89e3\u51b3\u8fd9\u79cd\u4e0d\u4fbf\u7684\u65b9\u6cd5\u4fbf\u662f\u5f15\u8fdb\u95e8\u9762\u6a21\u5f0f\uff0c\u533b\u9662\u53ef\u4ee5\u8bbe\u7f6e\u4e00\u4e2a\u63a5\u5f85\u5458\u7684\u4f4d\u7f6e\uff0c\u7531\u63a5\u5f85\u5458\u8d1f\u8d23\u4ee3\u4e3a\u6302\u53f7\u3001\u5212\u4ef7\u3001\u7f34\u8d39\u3001\u53d6\u836f\u7b49\u3002\u8fd9\u4e2a\u63a5\u5f85\u5458\u5c31\u662f\u95e8\u9762\u6a21\u5f0f\u7684\u4f53\u73b0\uff0c\u75c5\u4eba\u53ea\u63a5\u89e6\u63a5\u5f85\u5458\uff0c\u7531\u63a5\u5f85\u5458\u4e0e\u5404\u4e2a\u90e8\u95e8\u6253\u4ea4\u9053\u3002
\n\"\"<\/p>\n

\u95e8\u9762\u6a21\u5f0f\u7684\u7ed3\u6784<\/strong><\/div>\n

\u95e8\u9762\u6a21\u5f0f\u6ca1\u6709\u4e00\u4e2a\u4e00\u822c\u5316\u7684\u7c7b\u56fe\u63cf\u8ff0\uff0c\u6700\u597d\u7684\u63cf\u8ff0\u65b9\u6cd5\u5b9e\u9645\u4e0a\u5c31\u662f\u4ee5\u4e00\u4e2a\u4f8b\u5b50\u8bf4\u660e\u3002<\/p>\n

\u7531\u4e8e\u95e8\u9762\u6a21\u5f0f\u7684\u7ed3\u6784\u56fe\u8fc7\u4e8e\u62bd\u8c61\uff0c\u56e0\u6b64\u628a\u5b83\u7a0d\u7a0d\u5177\u4f53\u70b9\u3002\u5047\u8bbe\u5b50\u7cfb\u7edf\u5185\u6709\u4e09\u4e2a\u6a21\u5757\uff0c\u5206\u522b\u662fModuleA\u3001ModuleB\u548cModuleC\uff0c\u5b83\u4eec\u5206\u522b\u6709\u4e00\u4e2a\u793a\u4f8b\u65b9\u6cd5\uff0c\u90a3\u4e48\u6b64\u65f6\u793a\u4f8b\u7684\u6574\u4f53\u7ed3\u6784\u56fe\u5982\u4e0b\uff1a
\n\"\"<\/p>\n

\u5728\u8fd9\u4e2a\u5bf9\u8c61\u56fe\u4e2d\uff0c\u51fa\u73b0\u4e86\u4e24\u4e2a\u89d2\u8272\uff1a<\/p>\n

    \n
  1. \u95e8\u9762(Facade)\u89d2\u8272 \uff1a\u5ba2\u6237\u7aef\u53ef\u4ee5\u8c03\u7528\u8fd9\u4e2a\u89d2\u8272\u7684\u65b9\u6cd5\u3002\u6b64\u89d2\u8272\u77e5\u6653\u76f8\u5173\u7684\uff08\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\uff09\u5b50\u7cfb\u7edf\u7684\u529f\u80fd\u548c\u8d23\u4efb\u3002\u5728\u6b63\u5e38\u60c5\u51b5\u4e0b\uff0c\u672c\u89d2\u8272\u4f1a\u5c06\u6240\u6709\u4ece\u5ba2\u6237\u7aef\u53d1\u6765\u7684\u8bf7\u6c42\u59d4\u6d3e\u5230\u76f8\u5e94\u7684\u5b50\u7cfb\u7edf\u53bb\u3002<\/li>\n
  2. \u5b50\u7cfb\u7edf(SubSystem)\u89d2\u8272 \uff1a\u53ef\u4ee5\u540c\u65f6\u6709\u4e00\u4e2a\u6216\u8005\u591a\u4e2a\u5b50\u7cfb\u7edf\u3002\u6bcf\u4e2a\u5b50\u7cfb\u7edf\u90fd\u4e0d\u662f\u4e00\u4e2a\u5355\u72ec\u7684\u7c7b\uff0c\u800c\u662f\u4e00\u4e2a\u7c7b\u7684\u96c6\u5408\uff08\u5982\u4e0a\u9762\u7684\u5b50\u7cfb\u7edf\u5c31\u662f\u7531ModuleA\u3001ModuleB\u3001ModuleC\u4e09\u4e2a\u7c7b\u7ec4\u5408\u800c\u6210\uff09\u3002\u6bcf\u4e2a\u5b50\u7cfb\u7edf\u90fd\u53ef\u4ee5\u88ab\u5ba2\u6237\u7aef\u76f4\u63a5\u8c03\u7528\uff0c\u6216\u8005\u88ab\u95e8\u9762\u89d2\u8272\u8c03\u7528\u3002\u5b50\u7cfb\u7edf\u5e76\u4e0d\u77e5\u9053\u95e8\u9762\u7684\u5b58\u5728\uff0c\u5bf9\u4e8e\u5b50\u7cfb\u7edf\u800c\u8a00\uff0c\u95e8\u9762\u4ec5\u4ec5\u662f\u53e6\u5916\u4e00\u4e2a\u5ba2\u6237\u7aef\u800c\u5df2\u3002<\/li>\n<\/ol>\n
    \u6e90\u4ee3\u7801<\/strong><\/div>\n

    \u5b50\u7cfb\u7edf\u89d2\u8272\u4e2d\u7684\u7c7b\uff1a<\/strong><\/p>\n

    public class ModuleA {\r\n    \/\/\u793a\u610f\u65b9\u6cd5\r\n    public void testA(){\r\n        System.out.println(\"\u8c03\u7528ModuleA\u4e2d\u7684testA\u65b9\u6cd5\");\r\n    }\r\n}<\/pre>\n
    public class ModuleB {\r\n    \/\/\u793a\u610f\u65b9\u6cd5\r\n    public void testB(){\r\n        System.out.println(\"\u8c03\u7528ModuleB\u4e2d\u7684testB\u65b9\u6cd5\");\r\n    }\r\n}<\/pre>\n
    public class ModuleC {\r\n    \/\/\u793a\u610f\u65b9\u6cd5\r\n    public void testC(){\r\n        System.out.println(\"\u8c03\u7528ModuleC\u4e2d\u7684testC\u65b9\u6cd5\");\r\n    }\r\n}<\/pre>\n

    \u95e8\u9762\u89d2\u8272\u7c7b\uff1a<\/strong><\/p>\n

    public class Facade {\r\n    \/\/\u793a\u610f\u65b9\u6cd5\uff0c\u6ee1\u8db3\u5ba2\u6237\u7aef\u9700\u8981\u7684\u529f\u80fd\r\n    public void test(){\r\n        ModuleA a = new ModuleA();\r\n        a.testA();\r\n        ModuleB b = new ModuleB();\r\n        b.testB();\r\n        ModuleC c = new ModuleC();\r\n        c.testC();\r\n    }\r\n}<\/pre>\n

    \u5ba2\u6237\u7aef\u89d2\u8272\u7c7b\uff1a<\/strong><\/p>\n

    public class Client {\r\n \r\n    public static void main(String[] args) {\r\n        \r\n        Facade facade = new Facade();\r\n        facade.test();\r\n    }\r\n \r\n}<\/pre>\n

    Facade\u7c7b\u5176\u5b9e\u76f8\u5f53\u4e8eA\u3001B\u3001C\u6a21\u5757\u7684\u5916\u89c2\u754c\u9762\uff0c\u6709\u4e86\u8fd9\u4e2aFacade\u7c7b\uff0c\u90a3\u4e48\u5ba2\u6237\u7aef\u5c31\u4e0d\u9700\u8981\u4eb2\u81ea\u8c03\u7528\u5b50\u7cfb\u7edf\u4e2d\u7684A\u3001B\u3001C\u6a21\u5757\u4e86\uff0c\u4e5f\u4e0d\u9700\u8981\u77e5\u9053\u7cfb\u7edf\u5185\u90e8\u7684\u5b9e\u73b0\u7ec6\u8282\uff0c\u751a\u81f3\u90fd\u4e0d\u9700\u8981\u77e5\u9053A\u3001B\u3001C\u6a21\u5757\u7684\u5b58\u5728\uff0c\u5ba2\u6237\u7aef\u53ea\u9700\u8981\u8ddfFacade\u7c7b\u4ea4\u4e92\u5c31\u597d\u4e86\uff0c\u4ece\u800c\u66f4\u597d\u5730\u5b9e\u73b0\u4e86\u5ba2\u6237\u7aef\u548c\u5b50\u7cfb\u7edf\u4e2dA\u3001B\u3001C\u6a21\u5757\u7684\u89e3\u8026\uff0c\u8ba9\u5ba2\u6237\u7aef\u66f4\u5bb9\u6613\u5730\u4f7f\u7528\u7cfb\u7edf\u3002<\/p>\n

    \u95e8\u9762\u6a21\u5f0f\u7684\u5b9e\u73b0<\/strong><\/div>\n

    \u4f7f\u7528\u95e8\u9762\u6a21\u5f0f\u8fd8\u6709\u4e00\u4e2a\u9644\u5e26\u7684\u597d\u5904\uff0c\u5c31\u662f\u80fd\u591f\u6709\u9009\u62e9\u6027\u5730\u66b4\u9732\u65b9\u6cd5\u3002\u4e00\u4e2a\u6a21\u5757\u4e2d\u5b9a\u4e49\u7684\u65b9\u6cd5\u53ef\u4ee5\u5206\u6210\u4e24\u90e8\u5206\uff0c\u4e00\u90e8\u5206\u662f\u7ed9\u5b50\u7cfb\u7edf\u5916\u90e8\u4f7f\u7528\u7684\uff0c\u4e00\u90e8\u5206\u662f\u5b50\u7cfb\u7edf\u5185\u90e8\u6a21\u5757\u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u65f6\u4f7f\u7528\u7684\u3002\u6709\u4e86Facade\u7c7b\uff0c\u90a3\u4e48\u7528\u4e8e\u5b50\u7cfb\u7edf\u5185\u90e8\u6a21\u5757\u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u7684\u65b9\u6cd5\u5c31\u4e0d\u7528\u66b4\u9732\u7ed9\u5b50\u7cfb\u7edf\u5916\u90e8\u4e86\u3002<\/p>\n

    \u6bd4\u5982\uff0c\u5b9a\u4e49\u5982\u4e0bA\u3001B\u3001C\u6a21\u5757\u3002<\/p>\n

    public class Module {\r\n    \/**\r\n     * \u63d0\u4f9b\u7ed9\u5b50\u7cfb\u7edf\u5916\u90e8\u4f7f\u7528\u7684\u65b9\u6cd5\r\n     *\/\r\n    public void a1(){};\r\n    \r\n    \/**\r\n     * \u5b50\u7cfb\u7edf\u5185\u90e8\u6a21\u5757\u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u65f6\u4f7f\u7528\u7684\u65b9\u6cd5\r\n     *\/\r\n    private void a2(){};\r\n    private void a3(){};\r\n}<\/pre>\n
    public class ModuleB {\r\n    \/**\r\n     * \u63d0\u4f9b\u7ed9\u5b50\u7cfb\u7edf\u5916\u90e8\u4f7f\u7528\u7684\u65b9\u6cd5\r\n     *\/\r\n    public void b1(){};\r\n    \r\n    \/**\r\n     * \u5b50\u7cfb\u7edf\u5185\u90e8\u6a21\u5757\u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u65f6\u4f7f\u7528\u7684\u65b9\u6cd5\r\n     *\/\r\n    private void b2(){};\r\n    private void b3(){};\r\n}<\/pre>\n
    public class ModuleC {\r\n    \/**\r\n     * \u63d0\u4f9b\u7ed9\u5b50\u7cfb\u7edf\u5916\u90e8\u4f7f\u7528\u7684\u65b9\u6cd5\r\n     *\/\r\n    public void c1(){};\r\n    \r\n    \/**\r\n     * \u5b50\u7cfb\u7edf\u5185\u90e8\u6a21\u5757\u4e4b\u95f4\u76f8\u4e92\u8c03\u7528\u65f6\u4f7f\u7528\u7684\u65b9\u6cd5\r\n     *\/\r\n    private void c2(){};\r\n    private void c3(){};\r\n}<\/pre>\n
    public class ModuleFacade {\r\n    \r\n    ModuleA a = new ModuleA();\r\n    ModuleB b = new ModuleB();\r\n    ModuleC c = new ModuleC();\r\n    \/**\r\n     * \u4e0b\u9762\u8fd9\u4e9b\u662fA\u3001B\u3001C\u6a21\u5757\u5bf9\u5b50\u7cfb\u7edf\u5916\u90e8\u63d0\u4f9b\u7684\u65b9\u6cd5\r\n     *\/\r\n    public void a1(){\r\n        a.a1();\r\n    }\r\n    public void b1(){\r\n        b.b1();\r\n    }\r\n    public void c1(){\r\n        c.c1();\r\n    }\r\n}<\/pre>\n

    \u8fd9\u6837\u5b9a\u4e49\u4e00\u4e2aModuleFacade\u7c7b\u53ef\u4ee5\u6709\u6548\u5730\u5c4f\u853d\u5185\u90e8\u7684\u7ec6\u8282\uff0c\u514d\u5f97\u5ba2\u6237\u7aef\u53bb\u8c03\u7528Module\u7c7b\u65f6\uff0c\u53d1\u73b0\u4e00\u4e9b\u4e0d\u9700\u8981\u5b83\u77e5\u9053\u7684\u65b9\u6cd5\u3002\u6bd4\u5982a2()\u548ca3()\u65b9\u6cd5\u5c31\u4e0d\u9700\u8981\u8ba9\u5ba2\u6237\u7aef\u77e5\u9053\uff0c\u5426\u5219\u65e2\u66b4\u9732\u4e86\u5185\u90e8\u7684\u7ec6\u8282\uff0c\u53c8\u8ba9\u5ba2\u6237\u7aef\u8ff7\u60d1\u3002\u5bf9\u5ba2\u6237\u7aef\u6765\u8bf4\uff0c\u4ed6\u53ef\u80fd\u8fd8\u8981\u53bb\u601d\u8003a2()\u3001a3()\u65b9\u6cd5\u7528\u6765\u5e72\u4ec0\u4e48\u5462\uff1f\u5176\u5b9ea2()\u548ca3()\u65b9\u6cd5\u662f\u5185\u90e8\u6a21\u5757\u4e4b\u95f4\u4ea4\u4e92\u7684\uff0c\u539f\u672c\u5c31\u4e0d\u662f\u5bf9\u5b50\u7cfb\u7edf\u5916\u90e8\u7684\uff0c\u6240\u4ee5\u5e72\u8106\u5c31\u4e0d\u8981\u8ba9\u5ba2\u6237\u7aef\u77e5\u9053\u3002<\/p>\n

    \u4e00\u4e2a\u7cfb\u7edf\u53ef\u4ee5\u6709\u51e0\u4e2a\u95e8\u9762\u7c7b<\/strong><\/div>\n

    \u5728\u95e8\u9762\u6a21\u5f0f\u4e2d\uff0c\u901a\u5e38\u53ea\u9700\u8981\u4e00\u4e2a\u95e8\u9762\u7c7b\uff0c\u5e76\u4e14\u6b64\u95e8\u9762\u7c7b\u53ea\u6709\u4e00\u4e2a\u5b9e\u4f8b\uff0c\u6362\u8a00\u4e4b\u5b83\u662f\u4e00\u4e2a\u5355\u4f8b\u7c7b\u3002\u5f53\u7136\u8fd9\u5e76\u4e0d\u610f\u5473\u7740\u5728\u6574\u4e2a\u7cfb\u7edf\u91cc\u53ea\u6709\u4e00\u4e2a\u95e8\u9762\u7c7b\uff0c\u800c\u4ec5\u4ec5\u662f\u8bf4\u5bf9\u6bcf\u4e00\u4e2a\u5b50\u7cfb\u7edf\u53ea\u6709\u4e00\u4e2a\u95e8\u9762\u7c7b\u3002\u6216\u8005\u8bf4\uff0c\u5982\u679c\u4e00\u4e2a\u7cfb\u7edf\u6709\u597d\u51e0\u4e2a\u5b50\u7cfb\u7edf\u7684\u8bdd\uff0c\u6bcf\u4e00\u4e2a\u5b50\u7cfb\u7edf\u90fd\u6709\u4e00\u4e2a\u95e8\u9762\u7c7b\uff0c\u6574\u4e2a\u7cfb\u7edf\u53ef\u4ee5\u6709\u6570\u4e2a\u95e8\u9762\u7c7b\u3002<\/p>\n

    \u4e3a\u5b50\u7cfb\u7edf\u589e\u52a0\u65b0\u884c\u4e3a<\/strong><\/div>\n

    \u3000\u3000
    \n\u521d\u5b66\u8005\u5f80\u5f80\u4ee5\u4e3a\u901a\u8fc7\u7ee7\u627f\u4e00\u4e2a\u95e8\u9762\u7c7b\u4fbf\u53ef\u5728\u5b50\u7cfb\u7edf\u4e2d\u52a0\u5165\u65b0\u7684\u884c\u4e3a\uff0c\u8fd9\u662f\u9519\u8bef\u7684\u3002\u95e8\u9762\u6a21\u5f0f\u7684\u7528\u610f\u662f\u4e3a\u5b50\u7cfb\u7edf\u63d0\u4f9b\u4e00\u4e2a\u96c6\u4e2d\u5316\u548c\u7b80\u5316\u7684\u6c9f\u901a\u7ba1\u9053\uff0c\u800c\u4e0d\u80fd\u5411\u5b50\u7cfb\u7edf\u52a0\u5165\u65b0\u7684\u884c\u4e3a\u3002\u6bd4\u5982\u533b\u9662\u4e2d\u7684\u63a5\u5f85\u5458\u5e76\u4e0d\u662f\u533b\u62a4\u4eba\u5458\uff0c\u63a5\u5f85\u5458\u5e76\u4e0d\u80fd\u4e3a\u75c5\u4eba\u63d0\u4f9b\u533b\u7597\u670d\u52a1\u3002<\/p>\n

    \u95e8\u9762\u6a21\u5f0f\u7684\u4f18\u70b9<\/strong><\/div>\n

    \u677e\u6563\u8026\u5408: \u95e8\u9762\u6a21\u5f0f\u677e\u6563\u4e86\u5ba2\u6237\u7aef\u4e0e\u5b50\u7cfb\u7edf\u7684\u8026\u5408\u5173\u7cfb\uff0c\u8ba9\u5b50\u7cfb\u7edf\u5185\u90e8\u7684\u6a21\u5757\u80fd\u66f4\u5bb9\u6613\u6269\u5c55\u548c\u7ef4\u62a4\u3002<\/p>\n

    \u7b80\u5355\u6613\u7528: \u95e8\u9762\u6a21\u5f0f\u8ba9\u5b50\u7cfb\u7edf\u66f4\u52a0\u6613\u7528\uff0c\u5ba2\u6237\u7aef\u4e0d\u518d\u9700\u8981\u4e86\u89e3\u5b50\u7cfb\u7edf\u5185\u90e8\u7684\u5b9e\u73b0\uff0c\u4e5f\u4e0d\u9700\u8981\u8ddf\u4f17\u591a\u5b50\u7cfb\u7edf\u5185\u90e8\u7684\u6a21\u5757\u8fdb\u884c\u4ea4\u4e92\uff0c\u53ea\u9700\u8981\u8ddf\u95e8\u9762\u7c7b\u4ea4\u4e92\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n

    \u66f4\u597d\u7684\u5212\u5206\u8bbf\u95ee\u5c42\u6b21: \u901a\u8fc7\u5408\u7406\u4f7f\u7528Facade\uff0c\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u66f4\u597d\u5730\u5212\u5206\u8bbf\u95ee\u7684\u5c42\u6b21\u3002\u6709\u4e9b\u65b9\u6cd5\u662f\u5bf9\u7cfb\u7edf\u5916\u7684\uff0c\u6709\u4e9b\u65b9\u6cd5\u662f\u7cfb\u7edf\u5185\u90e8\u4f7f\u7528\u7684\u3002\u628a\u9700\u8981\u66b4\u9732\u7ed9\u5916\u90e8\u7684\u529f\u80fd\u96c6\u4e2d\u5230\u95e8\u9762\u4e2d\uff0c\u8fd9\u6837\u65e2\u65b9\u4fbf\u5ba2\u6237\u7aef\u4f7f\u7528\uff0c\u4e5f\u5f88\u597d\u5730\u9690\u85cf\u4e86\u5185\u90e8\u7684\u7ec6\u8282\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u73b0\u4ee3\u7684\u8f6f\u4ef6\u7cfb\u7edf\u90fd\u662f\u6bd4\u8f83\u590d\u6742\u7684\uff0c\u8bbe\u8ba1\u5e08\u5904\u7406\u590d\u6742\u7cfb\u7edf\u7684\u4e00\u4e2a\u5e38\u89c1\u65b9\u6cd5\u4fbf\u662f\u5c06\u5176”\u5206\u800c\u6cbb\u4e4b”\uff0c\u628a\u4e00\u4e2a\u7cfb\u7edf\u5212\u5206\u4e3a\u51e0\u4e2a\u8f83\u5c0f\u7684 […]<\/p>\n","protected":false},"author":1470,"featured_media":216952,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-216948","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/216948","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/1470"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=216948"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/216948\/revisions"}],"predecessor-version":[{"id":216954,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/216948\/revisions\/216954"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/216952"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=216948"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=216948"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=216948"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}