<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sato-shi</author_name>
  <author_url>https://blog.hatena.ne.jp/sato-shi/</author_url>
  <blog_title>Flex Coder</blog_title>
  <blog_url>https://sato-shi.hatenadiary.org/</blog_url>
  <categories>
    <anon>Spring Framework</anon>
  </categories>
  <description>MartinFowler的には、Dependency Injection（DI）だというツッコミで、IoCからDIになります。DIを理解するには、誰が誰を呼んでいるか考える。例えば、Carクラスの定義で、Engineインタフェースを実装したV6Engineを記述すると、CarクラスはV6Engineクラスに依存する。これを反転させると、CarクラスにはEngineのインタフェースとsetterが用意されていて、外部からV6Engineをセットしてやる。そうすると、Carクラスは他のクラスに依存しない。実際にセットする作業をするのはSpringコンテナがXML設定に基づいて行う。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsato-shi.hatenadiary.org%2Fentry%2F20050326%2Fp9&quot; title=&quot;制御の反転（IoC）を理解する - Flex Coder&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-03-26 00:00:08</published>
  <title>制御の反転（IoC）を理解する</title>
  <type>rich</type>
  <url>https://sato-shi.hatenadiary.org/entry/20050326/p9</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
