I tried to post it to the old thread, but it's gone readonly.
I don't know if it's possible to make a FactoryProvider for a Factory
which is declared to create an object satisfying an interface, instead
of a concrete class. Also there's one unpleasant generic cast.
Leigh.
Alen Vrecko
unread,
May 4, 2009, 7:40:57 PM5/4/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
As generic cast goes it is as good as it gets. At least from what I
can tell.
But you don't need to use the MapBinder here is an example without. It
creates Factories on the fly. I use child injectors maybe this is a
bit questionable. Does it make a difference if you have a 100+ child
injectors?
This is just on the fly haven't given it that much tought. Here is the
code.
On May 4, 10:30 pm, Leigh Klotz <Leigh.Kl...@gmail.com> wrote:
> Here's my updated version of an example showing how to combine
> Mapbinder and Assisted Inject.
>