Hi,
have a small doubt using abstract classes in Spring,
how can I refer the abstract classes in applicationcontext.xml file with out using look-up method.
I have created an abstract class which have to be used by many classes,
and declared beans like this:
<bean name="revenue" class="controllers.Controller">
<property name="abstractModel" ref="abstractModelClass"/>
</bean>
<bean id="abstractModelClass" class="models.AbstractModel" abstract="true">
<property name="countryBean" ref="countryBean"/>
<property name="extChargeSubServiceBean" ref="extChargeSubServiceBean"/>
<property name="revenueBean" ref="revenueBean"/>
<property name="extSubscriptionTicketServiceBean" ref="extSubscriptionTicketServiceBean"/>
<property name="subscriptionBean" ref="subscriptionBean"/>
</bean>
I like to use like that, but the IDE is showing error which was highlighted, and saying here u cant use reference.
can u pls any one tell me how can we implement abstract classes with out using look-up method.
Thanks in advance,
Raja.


Reply With Quote
