use ListResolver.

Tuna Toksöz
Eternal sunshine of the open source mind.

http://devlicio.us/blogs/tuna_toksoz
http://tunatoksoz.com
http://twitter.com/tehlike




On Thu, Jan 28, 2010 at 6:24 PM, dhasenan <[email protected]> wrote:

> Hi all,
>
> I want to register a type that depends on a collection of services.
> I've read the documentation here:
>
> http://www.castleproject.org/container/documentation/v21/usersguide/arrayslistsanddicts.html
>
> It's straightforward to translate this to Bindsor, but I have to
> manually register every type, make sure I know the names of the
> dependent services, and provide the list of items. In many situations,
> I don't care about the order of items in the collection, and
> everything implementing the relevant interface should be passed in.
> This is the largest source of headaches with registering stuff in the
> container -- normally I can just add the service and it's
> automatically registered.
>
> Is there a simple, DRY way to handle these situations? Or at least
> something that I can apply in the affected class rather than in my
> main Windsor configuration?
>
> - Chris Wright
>
> --
> 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]<castle-project-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>
>

-- 
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