On 2/27/13 11:36 AM, Olaf Krische wrote:
>> 3)
>>
>> Do i really have to write explicitly, what MyFactory can produce? I have
>> hundreds of components in my provider, that potentially could be used.
>>
>> I would like to be able to define a chain, like, look first in my own
>> ComponentProvider, and then maybe lookup somewhere else.
> Did not find a solution for that one yet. I can give my produce method an 
> InjectionPoint to get more info about the context, but i still have to create 
> a produce method for each type to produce.
>
> Any ideas?

You could use the extension mechanism. I'm not sure if there's a good 
tutorial. It's a bit more complicated
than basic CDI use. (And I'm not sure I can quickly explain it here.)

-- Scott
>
> Nice tutorial by the way:
>
> - 
> http://code.google.com/p/jee6-cdi/wiki/DependencyInjectionAnIntroductoryTutorial_Part1
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to