I have Spring bean that should be instantiated via constructor injection:
Here I don't know how to autowire bean of type java.lang.Class<IntermediateUser> with parameter IntermediateUser. Super class is instantiated by super(userClass) and it is also spring bean:
I need two spring beans - the first is IntermediateUserDao that has inherited methods from super class(JuniorUserDao) which is also spring bean. For inherited methods to work properly I pass Class<T> userClass by super(userClass).
Will I have two spring beans one is IntermediateUserDao that has inherited methods from super class and separately JuniorUserDao that has its own Class object injected via constructor.