[jboss-dev-forums] [Design the new POJO MicroContainer] - Re: New Callback and error handling
alesj
do-not-reply at jboss.com
Mon Apr 23 07:49:19 EDT 2007
"adrian at jboss.org" wrote : I haven't looked at the new Callback code (InstallItems) in any detail yet,
| but I noticed immediately that the error handling is insufficient and can lead to inconsistent behaviour/state.
|
Yup, I was waiting for some input, that's why I didn't close the JIRA task yet. ;-)
"adrian at jboss.org" wrote :
| 1) It should be asymmetrical with the install()
|
|
| | // Reverse order of the install()!
| | removeCallbacksFirst();
| | context.uninstall();
| |
|
Yes, I though of that.
But I need the uninstalling context to actually change its state.
For the CollectionCallbackItem to get its collection right on the uninstall phase - not picking up the current uninstalling context.
But I'll try fix this.
"adrian at jboss.org" wrote :
| Let's not make the same mistakes with the new Microcontainer! :-)
:-)
Agreed.
Will add the necessary error handling.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4039804#4039804
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4039804
More information about the jboss-dev-forums
mailing list