stevedlawrence commented on PR #1253:
URL: https://github.com/apache/daffodil/pull/1253#issuecomment-2145800186

   Yes, the Validator API says that Validator and ValidatorFactory 
implementations must be thread safe:
   
   
https://github.com/apache/daffodil/blob/main/daffodil-lib/src/main/scala/org/apache/daffodil/lib/api/Validator.scala#L22-L54
   
   And the implementation of the XercesValidator does use ThreadLocal to ensure 
this:
   
   
https://github.com/apache/daffodil/blob/main/daffodil-lib/src/main/scala/org/apache/daffodil/lib/validation/XercesValidator.scala#L82-L85
   
   I've updated/added comments to make this a little more clear.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to