The safest way is to lookup/release a component every time you need it, so the fragmentextractor uses the "correct" approach. If you know that the component you want to use is ThreadSafe and will always be ThreadSafe than you can optimize your code and lookup the component only once - this optimization has been done in the xslttransformer.
Carsten > -----Original Message----- > From: Torsten Knodt [mailto:[EMAIL PROTECTED] > Sent: Friday, May 30, 2003 9:30 PM > To: [EMAIL PROTECTED] > Subject: FragmentExtractor getting and releasing Store every time? > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > I've looked for an example to get a TRANSIENT_STORE and decided > to take the > FragmentExtractor. There I found something strange for me. Why is > the store > taken and released from the ComponentManager every time it needs > it. Wouldn't > it be better to get it in compose and release it in dispose? Or have I > understood something wrong. XSLTProcessorImpl in excalibur does it like I > think it would be right. > > Regards > Torsten > - -- > Domain in provider transition, hope for smoothness. Planed date > is 1.7.2003. > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.2 (GNU/Linux) > > iD4DBQE+17UHvxZktkzSmiwRAorYAJ9oe6t7R5cdjD+uSi6kJ4r5DlRAIACY+qwv > SDl8/xAzTQ471PFsXrxUpQ== > =NGPK > -----END PGP SIGNATURE----- >