<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>glass-_-onion</author_name>
  <author_url>https://blog.hatena.ne.jp/glass-_-onion/</author_url>
  <blog_title>A Day In The Life</blog_title>
  <blog_url>https://glassonion.hatenablog.com/</blog_url>
  <categories>
    <anon>オブジェクト指向</anon>
    <anon>java</anon>
  </categories>
  <description>依存関係逆転の原則とは 上位のモジュールは下位のモジュールに依存してはならない。どちらのモジュールも「抽象」に依存すべきである「抽象」は実装の詳細に依存してはならない。実装の詳細が「抽象」に依存すべきであるという原則です。 まずはこのクラス図を見てください。 この図ではパッケージAとパッケージBが互いに依存していて二つのパッケージを分離することが出来ません。 1つ目の図のようにパッケージが互いに依存しているときはインターフェースを使うことによって依存関係を一方通行にすることが出来ます。 具体的にはDaoインターフェースをパッケージAに作ってやり、パッケージBでDaoインターフェースを実装してや…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fglassonion.hatenablog.com%2Fentry%2F20070330%2F1175244709&quot; title=&quot;依存関係逆転の原則 - A Day In The Life&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>http://img.f.hatena.ne.jp/images/fotolife/g/glass-_-onion/20081106/20081106230428.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-03-30 17:51:49</published>
  <title>依存関係逆転の原則</title>
  <type>rich</type>
  <url>https://glassonion.hatenablog.com/entry/20070330/1175244709</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
