[jboss-user] [JBoss Seam] - Why not T Component.getInstance(Class<T> clazz) ?

atzbert do-not-reply at jboss.com
Mon Feb 26 17:36:13 EST 2007


This is no real issue it's just for my interest, I strongly believe there must be a reason for this. It's just that I don't get it :). Maybe someone can help me out here:
I catch myself quite often overriding methods which are offered by Seam and look like 
Object Component.getInstance(Class clazz) 
with the corresponding generalized implementation 
<T> T Component.getInstance(Class<T> clazz)

Why is it not implemented like that per default?, it would safe quite a few casts I guess...

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4022720#4022720

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4022720



More information about the jboss-user mailing list