<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>moznion</author_name>
  <author_url>https://blog.hatena.ne.jp/moznion/</author_url>
  <blog_title>その手の平は尻もつかめるさ</blog_title>
  <blog_url>https://moznion.hatenadiary.com/</blog_url>
  <categories>
    <anon>java</anon>
  </categories>
  <description>タイトルだけでは何を言っているかよくわかりませんが， public class Foo&lt;T&gt; { private Class&lt;T&gt; clazz; ... public void something() { // 例えばここで clazz を使って何らか処理をする System.out.println(clazz); } } みたいな class があるときに，ここの clazz に T の実際の class (ParameterizedType) を上手いこと inject したいと言う話題です． 結論から言うと，TypeLiteral&lt;T&gt; を使うと所望の動作を実現できます． public …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmoznion.hatenadiary.com%2Fentry%2F2016%2F02%2F10%2F225207&quot; title=&quot;Guice で generics の仮型引数の実体 class (ParameterizedType) を上手いこと inject する - その手の平は尻もつかめるさ&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>2016-02-10 22:52:07</published>
  <title>Guice で generics の仮型引数の実体 class (ParameterizedType) を上手いこと inject する</title>
  <type>rich</type>
  <url>https://moznion.hatenadiary.com/entry/2016/02/10/225207</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
