<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>higayasuo</author_name>
  <author_url>https://blog.hatena.ne.jp/higayasuo/</author_url>
  <blog_title>ひがやすを技術ブログ</blog_title>
  <blog_url>https://higayasuo.hatenablog.com/</blog_url>
  <categories>
    <anon>goya</anon>
  </categories>
  <description>DIでインジェクションされるオブジェクトの型にインターフェースを使うのは、実装が変わったときでも、利用者側に影響を及ぼさないようにするためです。この辺の詳細は、JavaWorld8月号のDIとOCPのところで触れています。 逆にスクリプト言語で型を意識する必要のない場合には、インターフェースや抽象型である必要はないと思います。 現状のDIコンテナで、インターフェースを使うことを必須としているものがあるのかどうかは分かりませんが、Seasar2やSpringは、インターフェースを使うことを必須としていません。Seasar2の場合、明示的にコンポーネントの名前を指定すれば、コンクリートクラスを使う…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhigayasuo.hatenablog.com%2Fentry%2F20050711%2F1121067676&quot; title=&quot;DIにインターフェースは必須か - ひがやすを技術ブログ&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>2005-07-11 16:41:16</published>
  <title>DIにインターフェースは必須か</title>
  <type>rich</type>
  <url>https://higayasuo.hatenablog.com/entry/20050711/1121067676</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
