-
Aug 3rd, 2006, 03:45 AM
#1
Bean class
Hello.
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?
Thanks,
Mike
-
Aug 3rd, 2006, 03:51 AM
#2
As far as I know, this is not possible (if it is, it would be a rather new feature).
Regards,
Andreas
-
Aug 3rd, 2006, 08:22 AM
#3
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules