Unity has a great feature providing a way to inject multiple implementations from a common interface.
The way it resolves a specific implementation is by name.
This is the example.
I would like to know how I could do the same thing with Spring.NET.
For example I have the following objects where both A and B resolvers use the same interface.
Follows the spring configuration:
<?xml version="1.0" encoding="utf-8"?>
<objects xmlns="http://www.springframework.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.net http://www.springframework.net/xsd/spring-objects.xsd http://www.springframework.net/aop http://www.springframework.net/xsd/spring-aop.xsd" xmlns:db="http://www.springframework.net/database" xmlns:aop="http://www.springframework.net/aop" xmlns:tx="http://www.springframework.net/tx">
<object id="A" type="Program.Mappers.Resolvers.A, Program"></object>
<object id="B" type="Program.Mappers.Resolvers.B, Program"></object>
</objects>
Spring.NET does not accept this because both objects use the same interface.
How can I solve it?