Peter Royal [[EMAIL PROTECTED]] wrote:
> 
> questions on this one.. i see what you are getting at.. how about the 
> following approach:
> 
> make LEAwareComponentHandler implement Disposable and call 
> ContainerUtil.dispose( componentHandler ) when its dispose is called.
> 

Yes, but shouldn't LEAwareComponentHandler delegate all lifecycle
methods to the delegatee then. Is there any reason for not delegating
the complete lifecycle?


> for the queue bits, how about having AbstractComponentHandler keep 
> track of whether or not it has been disposed, and if so just ignore the 
> prepare request?
> 

As a consequence of this modifications, either all possible
ComponentHandlers must extend AbstractComponentHandler or this
specific behaviour of prepareHandler (test for disposing and ignoring
if so) must be specified as a part of the ComponentHandler contract.

> if that sounds good, i can make the mods and commit.

Despite the issue I mentioned above your proposed changes will work
for me. Apply what you think fits best.

Thanks

Christopher

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

Reply via email to