8

Is the class org.apache.xalan.processor.TransformerFactoryImpl thread safe? Or do I have to a keep local copy for each thread?

Asaf Mesika
  • 1,643
  • 4
  • 20
  • 33

3 Answers3

8

According to the Xalan Transform API document:

A TransformerFactory may not perform mulitple concurrent operations.

WhiteFang34
  • 70,765
  • 18
  • 106
  • 111
2

It certainly doesn't look thread safe looking at the source

qwerty
  • 3,801
  • 2
  • 28
  • 43
0

Looking closely in the source suggests that it should be thread safe in case you don't call setter methods after first initialization.

Vadzim
  • 24,954
  • 11
  • 143
  • 151