I'm having a problem trying to instantiate a generic class with Windsor,
configuring it with xml file.

With this configuration, all works as expected:

                <component id="typewith2generics"
type="SpikeWindsor.TypeWith2Generics`2, SpikeWindsor">

                        <parameters>
                                <key>${component}</key>
                                <value>${component}</value>
                        </parameters>
                </component>

Using simple string as parameters, like in the followind configurartion

                <component id="typewith2generics"
type="SpikeWindsor.TypeWith2Generics`2, SpikeWindsor">
                        <parameters>
                                <key>string value</key>
                                <value>string value 2</value>

                        </parameters>
                </component>

I get the following exception trying to get an instance of the component:


Key invalid for parameter key. Thus the kernel was unable to override
the service dependency


I've created a small project on google code to reproduce the behaviour:

http://code.google.com/p/randomhacking/source/browse/trunk/dotnet/SpikeWindsor/

(the dependencies are located at
http://code.google.com/p/randomhacking/source/browse/trunk/dotnet/<http://code.google.com/p/randomhacking/source/browse/trunk/dotnet/SpikeWindsor/>
)

I'm using Windsor 2.0, but the trunk version shows the same behaviour

What do you think?

-- 
Gian Marco Gherardi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to