is TransformerFactoryImpl of Xalan is thread safe?
Asked Answered
D

3

8

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

Dry answered 4/4, 2011 at 5:14 Comment(0)
H
8

According to the Xalan Transform API document:

A TransformerFactory may not perform mulitple concurrent operations.

Hardship answered 4/4, 2011 at 5:40 Comment(1)
I wonder if this note is dictated only by presence of setter methods or something else.Starve
H
2

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

Hoggard answered 4/4, 2011 at 5:29 Comment(0)
S
0

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

Starve answered 16/10, 2015 at 15:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.