cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <giac...@apache.org>
Subject Re: 'dispose' method of component
Date Wed, 29 Oct 2003 21:03:50 GMT


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.

-- 
Giacomo Pati
Otego AG, Switzerland - http://www.otego.com
Orixo, the XML business alliance - http://www.orixo.com



Mime
View raw message