{"id":1317,"date":"2018-04-22T17:32:15","date_gmt":"2018-04-22T08:32:15","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=1317"},"modified":"2023-05-27T20:41:37","modified_gmt":"2023-05-27T11:41:37","slug":"%e3%80%90java%e3%80%91%e3%83%87%e3%82%b6%e3%82%a4%e3%83%b3%e3%83%91%e3%82%bf%e3%83%bc%e3%83%b3%e3%81%ae%e5%9f%ba%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=1317","title":{"rendered":"\u3010Java\u3011\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3084\u30af\u30e9\u30b9\u8a2d\u8a08\u306e\u57fa\u672c"},"content":{"rendered":"<h2>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3068\u306f\uff1f<\/h2>\n<p>\u904e\u53bb\u306b\u3001\u3046\u307e\u304f\u3044\u3063\u305f\u30af\u30e9\u30b9\u8a2d\u8a08\u306e\u30ce\u30a6\u30cf\u30a6\u3092\u96c6\u3081\u305f\u30d1\u30bf\u30fc\u30f3\u96c6\u306e\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u306f\u69d8\u3005\u306a\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u300c\u30b5\u30fc\u30d3\u30b9\u5074\u306e\u30b3\u30fc\u30c9\uff08\u4f8b\u3048\u3070\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u51e6\u7406\u306a\u3069\uff09\u300d\u3068\u300c\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u5074\u306e\u30b3\u30fc\u30c9\uff08\u4f8b\u3048\u3070\u753b\u9762\u306a\u3069\uff09\u300d\u306e\u4e8c\u3064\u306b\u5206\u304b\u308c\u307e\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u300c\u30b5\u30fc\u30d3\u30b9\u5074\u306e\u30b3\u30fc\u30c9\u300d<\/strong><strong>\u306e\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3<\/strong><\/span>\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u30e1\u30ea\u30c3\u30c8<\/h2>\n<h3>\u30af\u30e9\u30b9\u8a2d\u8a08\u6642\u9593\u3092\u77ed\u7e2e\u3067\u304d\u308b\u3002<\/h3>\n<p>\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u308b\u969b\u3082\u3001\u3044\u308f\u3070\u5275\u4f5c\u7269\u306b\u5f53\u305f\u308a\u3001\u30af\u30e9\u30b9\u306e\u69cb\u9020\u3092\u8003\u3048\u305f\u308a\u3059\u308b\u306e\u306b\u306f\u6642\u9593\u3092\u8981\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u3048\u3070\u3001<span style=\"color: #ff0000;\"><strong>\u3088\u308a\u77ed\u6642\u9593\u3067\u305d\u306e\u4f5c\u696d\u3092\u7d42\u308f\u3089\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u308b<\/strong><\/span>\u3067\u3057\u3087\u3046\u3002<\/p>\n<h3>\u4ed6\u306e\u958b\u767a\u8005\u306b\u77ed\u6642\u9593\u3067\u30af\u30e9\u30b9\u69cb\u9020\u3092\u308f\u304b\u3063\u3066\u3082\u3089\u3048\u308b\u3002<\/h3>\n<p>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u7fd2\u5f97\u3059\u308c\u3070\u3001\u4f8b\u3048\u3070\u81ea\u5206\u306e\u4f5c\u3063\u305f\u30af\u30e9\u30b9\u8a2d\u8a08\u66f8\u3084\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u4e2d\u306b\u30d1\u30bf\u30fc\u30f3\u540d\u3092\u8a18\u5165\u3057\u3066\u304a\u3051\u3070\u3001\u76f8\u624b\u304c\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3092\u7406\u89e3\u3057\u3066\u3044\u308b\u958b\u767a\u8005\u306e\u5834\u5408\u3067\u3059\u304c\u3001<span style=\"color: #ff0000;\"><strong>\u3088\u308a\u77ed\u6642\u9593\u3067\u4ed6\u306e\u958b\u767a\u8005\u306b\u30af\u30e9\u30b9\u306e\u69cb\u9020\u3084\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u610f\u5473\u3092\u7406\u89e3\u3057\u3066\u3082\u3089\u3044\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3002<\/strong><\/span><\/p>\n<h2>\u6709\u540d\u306a\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3<\/h2>\n<ul>\n<li>GoF\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3<\/li>\n<li>Java EE\u30d1\u30bf\u30fc\u30f3<\/li>\n<\/ul>\n<h3>GoF\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p><span style=\"color: #ff0000;\"><strong>\u300c\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u8a2d\u8a08\u3067\u306f\u3001\u6c4e\u7528\u7684\u306b\u4f7f\u3048\u308b\u30d1\u30bf\u30fc\u30f3\u300d<\/strong><\/span>\u3067\u3059\u30024\u4eba\u306e\u7814\u7a76\u8005\u304c\u3001\u5b9a\u7fa9\u3057\u305f23\u7a2e\u985e\u306e\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>Java\u306e\u30af\u30e9\u30b9\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u3001Java\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u306e\u8a2d\u8a08\u3067\u3082\u3042\u3061\u3053\u3061\u306b\u4f7f\u308f\u308c\u3066\u3044\u305f\u308a\u3057\u307e\u3059\u3002<\/p>\n<h4>Factory Method<\/h4>\n<p>\u3042\u308b\u30b5\u30d6\u30af\u30e9\u30b9\u3068\u5225\u306e\u30b5\u30d6\u30af\u30e9\u30b9\u3092\u5fc5\u305a\u30da\u30a2\u3067\u4f7f\u3063\u3066\u3082\u3089\u3046\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002\u5fc5\u305a\u30da\u30a2\u3067\u30b5\u30d6\u30af\u30e9\u30b9\u3092\u4f5c\u308b\u5834\u5408\u306f\u6709\u7528\u306a\u30d1\u30bf\u30fc\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"xVWfSH5Ygp\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=2618\">\u3010GoF\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3011\u300cFactory Method\u300d\u3063\u3066\u3069\u3093\u306a\u30d1\u30bf\u30fc\u30f3\uff1f<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=2618&#038;embed=true#?secret=xVWfSH5Ygp\" data-secret=\"xVWfSH5Ygp\" width=\"500\" height=\"282\" title=\"&#8220;\u3010GoF\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3011\u300cFactory Method\u300d\u3063\u3066\u3069\u3093\u306a\u30d1\u30bf\u30fc\u30f3\uff1f&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h4>Abstract Factory<\/h4>\n<p>\u300cFactory Method\u300d\u3068\u9055\u3044\u3001new\u306e\u307f\u3059\u308b\u5c02\u7528\u306e\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u3066\u3057\u307e\u3044\u3001\u30e1\u30a4\u30f3\u30d7\u30ed\u30b0\u30e9\u30e0\u5074\u306e\u4fee\u6b63\u3092\u6276\u990a\u3068\u3059\u308b\u8a2d\u8a08\u601d\u60f3\u306e\u30d1\u30bf\u30fc\u30f3\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3082\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"rx9hkzZQ9u\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=2652\">\u3010GoF\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3011\u300cAbstract Factory\u300d\u3063\u3066\u3069\u3093\u306a\u30d1\u30bf\u30fc\u30f3\uff1f<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=2652&#038;embed=true#?secret=rx9hkzZQ9u\" data-secret=\"rx9hkzZQ9u\" width=\"500\" height=\"282\" title=\"&#8220;\u3010GoF\u306e\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3011\u300cAbstract Factory\u300d\u3063\u3066\u3069\u3093\u306a\u30d1\u30bf\u30fc\u30f3\uff1f&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<h4>Template Method<\/h4>\n<p>\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u3067\u4f7f\u3063\u3066\u3044\u308b\u3002<\/p>\n<h4>Chain of Responsibility<\/h4>\n<p>\u30b5\u30fc\u30d6\u30ec\u30c3\u30c8\u30d5\u30a3\u30eb\u30bf\u3067\u306f\u3001\u3053\u306e\u30d1\u30bf\u30fc\u30f3\u3092\u4f7f\u3063\u3066\u3044\u308b\u3002<\/p>\n<p class=\"p1\"><b>Composite\u30d1\u30bf\u30fc\u30f3<\/b><\/p>\n<p class=\"p2\">java.awt\u30d1\u30c3\u30b1\u30fc\u30b8\u306eGUI\u90e8\u54c1<\/p>\n<p class=\"p1\"><b>Decorator\u30d1\u30bf\u30fc\u30f3<\/b><\/p>\n<p class=\"p2\">java.io\u30d1\u30c3\u30b1\u30fc\u30b8<\/p>\n<p class=\"p1\"><b>Strategy\u30d1\u30bf\u30fc\u30f3<\/b><\/p>\n<p class=\"p3\"><span class=\"s1\">java.awt<\/span>\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u753b\u9762\u30ec\u30a4\u30a2\u30a6\u30c8\u5236\u5fa1<\/p>\n<p><b>Observer\u30d1\u30bf\u30fc\u30f3<\/b><\/p>\n<p>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u540d\u524d\u304c\u305d\u306e\u307e\u307e\u30af\u30e9\u30b9\u540d\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<p><b>Iterator\u30d1\u30bf\u30fc\u30f3<\/b><\/p>\n<p>\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306e\u540d\u524d\u304c\u305d\u306e\u307e\u307e\u30af\u30e9\u30b9\u540d\u306b\u4f7f\u308f\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/p>\n<h3>Java EE\u30d1\u30bf\u30fc\u30f3<\/h3>\n<p>Java EE\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u7528\u306e\u30d1\u30bf\u30fc\u30f3<\/p>\n<h4>DAO\u3001DTO\u30d1\u30bf\u30fc\u30f3<\/h4>\n<p>Web\u30a2\u30d7\u30ea\u3067\u3001JDBC\u3092\u4f7f\u7528\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u4f5c\u308b\u969b\u306b\u3088\u304f\u4f7f\u308f\u308c\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3059\u3002<\/p>\n<p>\u8a73\u3057\u304f\u306f\u3001\u4e0b\u8a18\u306e\u8a18\u4e8b\u3067\u3082\u89e3\u8aac\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"cXV4snD7UT\"><p><a href=\"http:\/\/www.code-magagine.com\/?p=1311\">\u3010\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3011DAO\/DTO\u30d1\u30bf\u30fc\u30f3<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" src=\"http:\/\/www.code-magagine.com\/?p=1311&#038;embed=true#?secret=cXV4snD7UT\" data-secret=\"cXV4snD7UT\" width=\"500\" height=\"282\" title=\"&#8220;\u3010\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3011DAO\/DTO\u30d1\u30bf\u30fc\u30f3&#8221; &#8212; \u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30de\u30ac\u30b8\u30f3\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"\u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u3068\u306f\uff1f \u904e\u53bb\u306b\u3001\u3046\u307e\u304f\u3044\u3063\u305f\u30af\u30e9\u30b9\u8a2d\u8a08\u306e\u30ce\u30a6\u30cf\u30a6\u3092\u96c6\u3081\u305f\u30d1\u30bf\u30fc\u30f3\u96c6\u306e\u3053\u3068\u3067\u3059\u3002 \u30c7\u30b6\u30a4\u30f3\u30d1\u30bf\u30fc\u30f3\u306b\u306f\u69d8\u3005\u306a\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306f\u300c\u30b5\u30fc\u30d3\u30b9\u5074\u306e\u30b3\u30fc\u30c9\uff08\u4f8b\u3048\u3070\u3001\u30c7\u30fc [&hellip;]","protected":false},"author":1,"featured_media":1375,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,21],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1317"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1317"}],"version-history":[{"count":20,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1317\/revisions"}],"predecessor-version":[{"id":20247,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/1317\/revisions\/20247"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/media\/1375"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1317"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}