cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 15312] - Parent ComponentManager does not get disposed
Date Sat, 03 May 2003 14:31:40 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15312>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15312

Parent ComponentManager does not get disposed





------- Additional Comments From bruno@outerthought.org  2003-05-03 14:31 -------
Hi Unico,

your patch suffers from "subversion of control": the Cocoon component should
never dispose its parent component manager itself.

The correct solution is that the parentComponentManager is disposed by the code
that created it, in this case the CocoonServlet class. This can be done in its
dispose() method.

If you're still interested in this feature, could you supply a new patch?

It's a tiny bit more work because the CocoonServlet currently does not hold a
reference to the parentComponentManager.

And maybe also include a patch for web.xml that mentions that Disposable is now
also honored.

Mime
View raw message