<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Yamashiro0217</author_name>
  <author_url>https://blog.hatena.ne.jp/Yamashiro0217/</author_url>
  <blog_title>Yamashiro0217の日記</blog_title>
  <blog_url>https://yamashiro0217.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>ScalaでDIというかServiceLocator的な名状しがたい何かを簡単に実装してみた。 理由はテストを楽に書くため。LiftのSimpleInjectorも検討したが、まぁ、勉強がてら作成。 完成形のコードはgistに上げた https://gist.github.com/2651257 例えばTwitterのクライアントを作るとする。 TwitterのAPIにアクセスするようなクラスが class TwitterApi { def publicTimeLines : List[String] = { //Twitter API つかってごにょごにょするはず List(&quot;本当は&quot;, &quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyamashiro0217.hatenadiary.org%2Fentry%2F20120510%2F1336629223&quot; title=&quot;ScalaでDIというかServiceLocator的な名状しがたい何か - Yamashiro0217の日記&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>2012-05-10 14:53:43</published>
  <title>ScalaでDIというかServiceLocator的な名状しがたい何か</title>
  <type>rich</type>
  <url>https://yamashiro0217.hatenadiary.org/entry/20120510/1336629223</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
