Thanks for the reply.
1) Where can I find more information regarding this subject?
2) Consider the following scenario
User->A->B->C
a) User code requests an A instance
b) Type A has an optional dependency on B
c) Type B has a mandatory dependency on C
d) The construction of a C instance results in an exception
The exception in C construction results on an exception bubbling up to the
initial call requesting an A instance?
Or, since B is not mandatory, the request for A succeeds?
Thanks
Pedro Félix
-----Original Message-----
Sent: quinta-feira, 5 de Novembro de 2009 19:23
Subject: Re: [picocontainer-user] How does picocontainer handles
constructor exceptions
AFAIR, they are passed through to caller. But nothing prevents you from
implementing custom behaviour and catch them.
regards,
----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/
Subject: [picocontainer-user] How does picocontainer handles
constructor exceptions
Date: Thursday, November 5, 2009, 7:16 PM
Hi,
How does picocontainer handles exceptions (checked or
unchecked) throwed by
the constructor during constructor injection?
Thanks
Pedro Félix
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email