On Fri, 15 Feb 2002 22:11, Leo Sutic wrote:
> I believe that release() should be in the Manager interface, and that all
> components should be released by the client.

Compare that to me who will never ever ever use release() because I consider 
it subversion of control and performance hack to boot ;)

There are basically two types of architectures which use ComponentManager; 
persistent and request based. In both cases the Container can always 
determine which resources a component uses.

The way phoenix does it (persistent architecture) is when the component 
shutsdown it releases all resources it used. 

A request based architecture could do much the same. At start of each request 
start tracking the components used, at the end of the request release all 
components used.

Then the component writer has a much easier time and does not have to worry 
about doing a release() or anything smilar - makes their life easier. It also 
makes the system more reliable because the same behaviour is guarenteed 
across a range of components.



-- 
Cheers,

Pete

*------------------------------------------------*
| Trying is the first step to failure.           |
|   So never try, Lisa  - Homer Jay Simpson      |
*------------------------------------------------*

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to