windsor convention based overrides

8 views
Skip to first unread message

Jan Limpens

unread,
Feb 22, 2010, 8:01:58 AM2/22/10
to castle-project-users
I have this, and think it is not very elegant

, Component.For<AutomapperBootstrapper>()
   .ServiceOverrides(new
        {
        urlResolverForNamedEntities = "urlResolverForNamedEntities",
        priceResolver = "priceResolver"
        })

Is there a ready made facility around this?

Krzysztof Koźmic (2)

unread,
Feb 22, 2010, 8:05:31 AM2/22/10
to Castle Project Users
Jan,

I'm not sure I follow. Could you elaborate what it is that you seek?

Krzysztof Koźmic (2)

unread,
Feb 22, 2010, 8:07:25 AM2/22/10
to Castle Project Users

Jan Limpens

unread,
Feb 22, 2010, 9:04:10 AM2/22/10
to castle-pro...@googlegroups.com
the line

componentName = dependency.DependencyKey;

sounds exactly what i need. haven't tried it so far, though

thanks a lot!

2010/2/22 Krzysztof Koźmic (2) <krzy...@kozmic.pl>
--
You received this message because you are subscribed to the Google Groups "Castle Project Users" group.
To post to this group, send email to castle-pro...@googlegroups.com.
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.




--
Jan

Krzysztof Koźmic (2)

unread,
Feb 22, 2010, 9:08:47 AM2/22/10
to Castle Project Users
Jan,

I know you know, but I want to be explicit - this is a blogpost proof
of concept toy code of throwaway quality.
Other than that - let me know how it works for you and if you'd change/
extend it somehow.

Krzysztof

On 22 Lut, 15:04, Jan Limpens <jan.limp...@gmail.com> wrote:
> the line
>
> componentName = dependency.DependencyKey;
>
> sounds exactly what i need. haven't tried it so far, though
>
> thanks a lot!
>

> 2010/2/22 Krzysztof Koźmic (2) <krzysz...@kozmic.pl>


>
>
>
> > do you mean something like this?
>

> >http://kozmic.pl/archive/2009/04/09/convention-based-dependency-injec...


>
> > On 22 Lut, 14:01, Jan Limpens <jan.limp...@gmail.com> wrote:
> > > I have this, and think it is not very elegant
>
> > > , Component.For<AutomapperBootstrapper>()
> > >    .ServiceOverrides(new
> > >         {
> > >         urlResolverForNamedEntities = "urlResolverForNamedEntities",
> > >         priceResolver = "priceResolver"
> > >         })
>
> > > Is there a ready made facility around this?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Castle Project Users" group.
> > To post to this group, send email to castle-pro...@googlegroups.com
> > .
> > To unsubscribe from this group, send email to

> > castle-project-u...@googlegroups.com<castle-project-users%2Bunsu...@googlegroups.com>

Jan Limpens

unread,
Feb 22, 2010, 9:38:34 AM2/22/10
to castle-pro...@googlegroups.com
It does so little (and this seemingly well) that I have trouble imagining any harm done by it...

2010/2/22 Krzysztof Koźmic (2) <krzy...@kozmic.pl>
Jan,
To unsubscribe from this group, send email to castle-project-u...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.




--
Jan
Reply all
Reply to author
Forward
0 new messages