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: [RT] Component Types
Date Mon, 26 Jan 2004 19:55:41 GMT


> From: Niclas Hedhman [mailto:niclas@hedhman.org] 
> 
> On Monday 26 January 2004 10:39, Leo Sutic wrote:
> >     public void process () {
> >         SAXTransformer tf =
> >             (SAXTransformer) saxTransformerFactory.get ();
> >         try {
> >             tf.startDocument ();
> >             ...
> >             tf.endDocument ();
> >         } finally {
> >             saxTransformerFactory.put (tf);
> >         }
> >     }
> 
> Forgive me for being utterly dumb and thick-headed, but I 
> don't get what you 
> are looking for.
> 
> What is the difference?

For the SAXTransformer? None at all. It is an example of a *stateful*
pooled component.

But for other components - those that are *stateless*, the difference 
is that you don't have to do a lookup/release every time.

/LS


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


Mime
View raw message