Aug 3rd, 2006, 03:45 AM
I have a service TestService (interface) and an adapter TestServiceAdapter (dummy implementation).
In the xml file I declare my bean as :
<bean id="testService" class="com.test.TestServiceAdapter"/>
Is there a posibility to specify the bean class inside a property file and specify that property on the class attribute?
Aug 3rd, 2006, 03:51 AM
As far as I know, this is not possible (if it is, it would be a rather new feature).
Aug 3rd, 2006, 08:22 AM
You may use AOP and a TargetSource to switch between two implementations. I don't know enough about TargetSources to give you an example, take a look at http://www.springframework.org/docs/...p-targetsource