I'd like to define just a superclass and its dependencies in my applicationContext.xml. I'd then like to instantiate a subclass, and then ask my BeanFactory (or the like) to wire it up for me.
I know this is an odd request. I'm integrating the SpringHibernateInterceptor to wire up beans for Hibernate. I have many subclasses defined, but all have the same wiring. Instead of defining a prototype for each subclass, I'd like to define a prototype for the superclass, and define it's dependencies.
Then, in the SpringHibernateInterceptor, I would somehow check if the BeanFactory knows how to wire up the subclass for me.
There might be some way to ask the BeanFactory to wire up an existing bean, by matching its class. I doubt it, but I thought I'd ask.
It's not too big of a deal, but if we can avoid defining one prototype per subclass (we have lots) then all the better.