avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: [RT] Component Types
Date Mon, 26 Jan 2004 19:49:22 GMT
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?

         SAXTransformer tf =
             (SAXTransformer) serviceManager.lookup( "sax-transformer" );
         try {
             tf.startDocument ();
             ...
             tf.endDocument ();
         } finally {
             serviceManager.release( tf );
         }

Niclas

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


Mime
View raw message