This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I guess the title says it all, but: I have a bean with a property of type java.lang.Class. How can I populate this property using a Spring Context.xml? Is there some sort of Spring ClassFactoryBean I can use?
So, something like this:
Only problem is, there's no such thing as org.springframework.beas.factory.config.ClassFactoryBean.
Has anyone done this before?
On a related note, is there some way to specify the run-time type, for classes that use Generics?