OK, found the right syntax. One needs to specify java.lang.Class
as the type and the actual class as the value.


Quote Originally Posted by bonnyr
Note: Spring 1.2

I'm trying to set the keys of the map as class types, but get a type
mismatch conversion exception. My bean file looks like:
Code:
            <map>
                <entry>
                    <key>
                        <value type="....finders.NEFinder"/>
                    </key>
                    <ref bean="defaultNEFinder"/>
                </entry>
           </map>
It seems that spring wants to instantiate an instance of the shown type
with some value, but I simply want the class itself as the value of the key.

I'm sure I'm doing something wrong here, but what?