<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>toshiyuki_saito</author_name>
  <author_url>https://blog.hatena.ne.jp/toshiyuki_saito/</author_url>
  <blog_title>個人事業主のつぶやき</blog_title>
  <blog_url>https://toshiyuki-saito.hatenadiary.org/</blog_url>
  <categories>
    <anon>デザパタ</anon>
  </categories>
  <description>さて、久々(?)のデザインパターンです。今回はDecoratorパターン。装飾という意味です。まずは実例から。public final class ConfigUtil { public static int getParameter() { // どこかから設定を取ってくる }}という設定を管理するクラスがあります。こgetParameter()実は処理が重く、1つのアプリケーションから複数回呼び出されることがあり、そこがボトルネックとなっている場合、何らかの処置が必要です。考えられる処置をあげてみましょう。?アプリ側で値を変数にとっておき、それを使うように修正する。これは一番に思い浮かびま…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoshiyuki-saito.hatenadiary.org%2Fentry%2F20070107%2F1168148691&quot; title=&quot;デザインパターン[Decorator] - 個人事業主のつぶやき&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-01-07 14:44:51</published>
  <title>デザインパターン[Decorator]</title>
  <type>rich</type>
  <url>https://toshiyuki-saito.hatenadiary.org/entry/20070107/1168148691</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
