[jboss-user] [JBoss Microcontainer Users] - Re: how to instantiate a generic/parameterized MC bean/POJO

alesj do-not-reply at jboss.com
Wed Nov 11 06:19:13 EST 2009

"CsabaSzucs" wrote : 
  | So how shall I define the type parameter for the constructor in the XML descriptor?
Have a look at how we use SchemaResolverDeployer (e.g. in deployers.xml).
The deployer itself is parametrized, but once you define its output it becomes "more exact". 

But what's the use case?
Generics are only helpful at compile time,
since at runtime they are forgotten anyway.

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

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

More information about the jboss-user mailing list