<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ocs</author_name>
  <author_url>https://blog.hatena.ne.jp/ocs/</author_url>
  <blog_title>倖せの迷う森</blog_title>
  <blog_url>https://ocs.hatenadiary.org/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>暇つぶしネタ。 S2 などの DI コンテナを使っていると、sintleton コンポーネントから prototype などの、よりスコープの短いコンポーネントを取得したいケースがあります。 この場合、単純に DI するだけではうまくいきません。 public interface BarService { void execute(); } public class FooServiceImpl implements FooService { private BarService service; // prototype-scope public void setBarService(Bar…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Focs.hatenadiary.org%2Fentry%2F20090701%2F1246376303&quot; title=&quot;スコープの短いコンポーネントの取得 - 倖せの迷う森&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>2009-07-01 00:38:23</published>
  <title>スコープの短いコンポーネントの取得</title>
  <type>rich</type>
  <url>https://ocs.hatenadiary.org/entry/20090701/1246376303</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
