cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <jer...@media.demon.co.uk>
Subject Re: 'dispose' method of component
Date Wed, 29 Oct 2003 21:40:08 GMT

On Wednesday, October 29, 2003, at 09:03 PM, Giacomo Pati wrote:

>
>
> Jeremy Quinn wrote:
>> On Wednesday, October 29, 2003, at 01:40 PM, Giacomo Pati wrote:
>>> Hi Jeremy
>>>
>>> Jeremy Quinn wrote:
>>>
>>> <snipped>
>>>
>>>> public class HibernateFactory
>>>>   extends AbstractLogEnabled
>>>>   implements PersistanceFactory, Configurable, Serviceable,  
>>>> Initializable, Disposable, ThreadSafe
>>>
>>>
>>> IIRC ThreadSafe components are disposed only when the 
>>> ComponentManager is disposed (read shutdown of jetty). The 
>>> counterpart interface of Disposable is Initializable which is called 
>>> once during the life time of the component as with the Disposable.
>> Thanks for your clarification.
>> So is it possible to have a method called on my component when :
>>     cocoon.releaseComponent (component)
>> is called on it?
>
> Not on ThreadSafe components. The only one I know is a Recyclable 
> component (which is a sub type of Poolable) but I don't think this is 
> what you want your component to be.

Thanks for your help, Giacomo.

regards Jeremy


Mime
View raw message