avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Sutic" <leo.su...@inspireinfrastructure.com>
Subject RE: [VOTE][Patch] ComponentUtil
Date Fri, 30 Nov 2001 23:22:14 GMT

> -----Original Message-----
> From: Peter Donald [mailto:peter@apache.org]
> a) a dodgy container
> or
> b) evil clients who can get direct reference to component
> if (a) is true then it should be fixed not worked around.

True, it should be fixed in the container. There is no reasonable way to survive the handling
of a container that calls the methods in the wrong order. And that is just the point: Fail
early. Do not wait and fail later. If the container is dodgy, the component can help by failing
fast, much like the Iterator classes.

Here's a patch for some refactoring of AbstractComponent.


View raw message