<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xmldtp</author_name>
  <author_url>https://blog.hatena.ne.jp/xmldtp/</author_url>
  <blog_title>ウィリアムのいたずらの、まちあるき、たべあるきーPART2</blog_title>
  <blog_url>https://xmldtp.hatenadiary.org/</blog_url>
  <categories>
    <anon>Weblog</anon>
  </categories>
  <description>シリーズ依存性の問題の対応策の前回書いた内容について。 仕様変更が多かったり、汎用化させたいため、引数を共通化する場合、 １．いくつかの引数を１つのハッシュマップに入れてしまうという方法があります。 この場合、ハッシュマップに入れるときに、クラス化すると、クラスが 変わったことによって、エラーではじくことができます （あと、ハッシュマップの場合は、キーを変えることでもはじけます） ２．引数を汎用的な型から継承させ、メソッドの引数自体は、その汎用的な型のほうを 書く。 Strutsなどでは、これが利用されています。 画面（フォーム）の値はActionFormという型から継承します。 たとえば、N…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxmldtp.hatenadiary.org%2Fentry%2Ffa03b8ce2920a83866c422e83e5c6723&quot; title=&quot;依存性の問題の対応策（その５：引数の共通化で継承を使う場合） - ウィリアムのいたずらの、まちあるき、たべあるきーPART2&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>2006-11-29 18:29:45</published>
  <title>依存性の問題の対応策（その５：引数の共通化で継承を使う場合）</title>
  <type>rich</type>
  <url>https://xmldtp.hatenadiary.org/entry/fa03b8ce2920a83866c422e83e5c6723</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
