<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Exploiting Generics Metadata</title>
	<atom:link href="http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/</link>
	<description>The voice of SpringSource</description>
	<lastBuildDate>Sat, 13 Mar 2010 01:18:34 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Twigathy</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-167967</link>
		<dc:creator>Twigathy</dc:creator>
		<pubDate>Tue, 11 Aug 2009 19:48:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-167967</guid>
		<description>Peter, I also get that. Did you find a solution?</description>
		<content:encoded><![CDATA[<p>Peter, I also get that. Did you find a solution?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: geekinside's me2DAY</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-162494</link>
		<dc:creator>geekinside's me2DAY</dc:creator>
		<pubDate>Thu, 09 Apr 2009 05:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-162494</guid>
		<description></description>
		<content:encoded><![CDATA[<p><strong>gEEkInsIdEì?˜ ëŠ?ë‚Œ&#8230;</strong></p>
<p>Exploiting Generics Metadata. ì†?ì•˜ë‹¤! Genericì?€ ì»´íŒŒì?¼ í•  ë•Œë§Œ ì“°ëŠ” ê±°ë?¼ê³  í•˜ë?”ë‹ˆë§Œâ€¦&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-145863</link>
		<dc:creator>Peter</dc:creator>
		<pubDate>Mon, 09 Feb 2009 14:30:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-145863</guid>
		<description>I don&#039;t know if anyone is going to read this comment, but I can&#039;t seem to get this solution to work. I&#039;m working on Java 6. The line with the return statement generates a ClassCastException. The function getActualTypeArguments returns an array with objects of type sun.reflect.generics.reflectiveObjects.TypeVariableImpl. It does implement the Type interface, but cannot be cast to type Class.</description>
		<content:encoded><![CDATA[<p>I don&#039;t know if anyone is going to read this comment, but I can&#039;t seem to get this solution to work. I&#039;m working on Java 6. The line with the return statement generates a ClassCastException. The function getActualTypeArguments returns an array with objects of type sun.reflect.generics.reflectiveObjects.TypeVariableImpl. It does implement the Type interface, but cannot be cast to type Class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ramon Buckland</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-50237</link>
		<dc:creator>Ramon Buckland</dc:creator>
		<pubDate>Fri, 21 Sep 2007 05:08:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-50237</guid>
		<description>Hi Rob, 


That is great. I was amazed to find this because I was trying to write exactly the same thing but
was having a 20 minute battle with the reflection API and the generics interface. Your solution was spot on :-) and I was able to drop in your extractTypeParameter() method over the top of mine. great!

it really makes it just &quot;that&quot; much bit tidier.</description>
		<content:encoded><![CDATA[<p>Hi Rob, </p>
<p>That is great. I was amazed to find this because I was trying to write exactly the same thing but<br />
was having a 20 minute battle with the reflection API and the generics interface. Your solution was spot on <img src='http://blog.springsource.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  and I was able to drop in your extractTypeParameter() method over the top of mine. great!</p>
<p>it really makes it just &#034;that&#034; much bit tidier.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-38383</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 07 Aug 2007 08:27:04 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-38383</guid>
		<description>That should have been:

Francesco,

There is no need to create that bean definition - you can simply use MyQueue without the type parameter - at runtime there is no such type as MyQueue&lt;String&gt; when looking at an object instance. You can inject MyQueue into a MyQueue&lt;String&gt; property.

Rob</description>
		<content:encoded><![CDATA[<p>That should have been:</p>
<p>Francesco,</p>
<p>There is no need to create that bean definition &#8211; you can simply use MyQueue without the type parameter &#8211; at runtime there is no such type as MyQueue&lt;String&gt; when looking at an object instance. You can inject MyQueue into a MyQueue&lt;String&gt; property.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-38382</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Tue, 07 Aug 2007 08:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-38382</guid>
		<description>Francesco,

There is no need to create that bean definition - you can simply use MyQueue without the type parameter - at runtime there is no such type as MyQueue when looking at an object instance. You can inject MyQueue into a MyQueue property.

Rob</description>
		<content:encoded><![CDATA[<p>Francesco,</p>
<p>There is no need to create that bean definition &#8211; you can simply use MyQueue without the type parameter &#8211; at runtime there is no such type as MyQueue when looking at an object instance. You can inject MyQueue into a MyQueue property.</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco Iadanza</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-38378</link>
		<dc:creator>Francesco Iadanza</dc:creator>
		<pubDate>Tue, 07 Aug 2007 08:02:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-38378</guid>
		<description>I&#039;m sorry, I missed the xml configuration.

a question about generics and Spring:
is this kind of bean definition supported in Spring 2.0?

&lt;bean id=&quot;test&quot; class=&quot;MyQueue&lt;String&gt;&quot; /&gt;

I mean, I created a generic bean class MyQueue&lt;T&gt; and I want to specify the type &quot;String&quot; when creating a bean in Spring configuration

Thanks a lot
Francesco</description>
		<content:encoded><![CDATA[<p>I&#039;m sorry, I missed the xml configuration.</p>
<p>a question about generics and Spring:<br />
is this kind of bean definition supported in Spring 2.0?</p>
<p>&lt;bean id=&#034;test&#034; class=&#034;MyQueue&lt;String&gt;&#034; /&gt;</p>
<p>I mean, I created a generic bean class MyQueue&lt;T&gt; and I want to specify the type &#034;String&#034; when creating a bean in Spring configuration</p>
<p>Thanks a lot<br />
Francesco</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco Iadanza</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-38284</link>
		<dc:creator>Francesco Iadanza</dc:creator>
		<pubDate>Mon, 06 Aug 2007 20:55:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-38284</guid>
		<description>Hi,
a question about generics and Spring:
is this kind of bean definition supported in Spring 2.0?

  &quot; / &gt;  

I mean, I created a generic bean class MyQueue and I want to specify the type &quot;T&quot; when creating a bean in Spring configuration

Thanks a lot
Francesco</description>
		<content:encoded><![CDATA[<p>Hi,<br />
a question about generics and Spring:<br />
is this kind of bean definition supported in Spring 2.0?</p>
<p>  &#034; / &gt;  </p>
<p>I mean, I created a generic bean class MyQueue and I want to specify the type &#034;T&#034; when creating a bean in Spring configuration</p>
<p>Thanks a lot<br />
Francesco</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco Iadanza</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-38282</link>
		<dc:creator>Francesco Iadanza</dc:creator>
		<pubDate>Mon, 06 Aug 2007 20:53:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-38282</guid>
		<description>Hi,
a question about generics and Spring:
is this kind of bean definition supported in Spring 2.0?


&quot;&gt;



I mean, I created a generic bean class MyQueue and I want to specify the type &quot;T&quot; when creating a bean in Spring configuration

Thanks a lot
Francesco</description>
		<content:encoded><![CDATA[<p>Hi,<br />
a question about generics and Spring:<br />
is this kind of bean definition supported in Spring 2.0?</p>
<p>&#034;&gt;</p>
<p>I mean, I created a generic bean class MyQueue and I want to specify the type &#034;T&#034; when creating a bean in Spring configuration</p>
<p>Thanks a lot<br />
Francesco</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Interface21 Team Blog &#187; A Bridge Too Far</title>
		<link>http://blog.springsource.com/2006/09/29/exploiting-generics-metadata/comment-page-1/#comment-8440</link>
		<dc:creator>Interface21 Team Blog &#187; A Bridge Too Far</dc:creator>
		<pubDate>Tue, 16 Jan 2007 22:19:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.interface21.com/main/2006/09/29/exploiting-generics-metadata/#comment-8440</guid>
		<description>[...] Posted on January 16th, 2007 by Rob Harrop in Spring.  In my last entry I presented a technique for creating strategy classes that take full advantage of any generic metadata that is present in your application. At the end of that entry I showed this code snippet:  EntitlementCalculator calculator = new DividendEntitlementCalculator&#40;&#41;; calculator.calculateEntitlement&#40;new MergerCorporateActionEvent&#40;&#41;&#41;; [...]</description>
		<content:encoded><![CDATA[<p>[...] Posted on January 16th, 2007 by Rob Harrop in Spring.  In my last entry I presented a technique for creating strategy classes that take full advantage of any generic metadata that is present in your application. At the end of that entry I showed this code snippet:  EntitlementCalculator calculator = new DividendEntitlementCalculator&#40;&#41;; calculator.calculateEntitlement&#40;new MergerCorporateActionEvent&#40;&#41;&#41;; [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
