[ 
https://issues.apache.org/jira/browse/CODEC-55?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533171
 ] 

James Carman commented on CODEC-55:
-----------------------------------

Is a Encoder/Decoder really a "business service", though?  Is it really 
something that you would register as a Spring bean, for instance?  If so, try 
using a ThreadLocalTargetSource (without Spring, a ThreadLocal variable would 
be easy enough to maintain).  These objects are not that expensive to keep 
around, nor are their "dependencies" that hard to establish (a boolean here and 
there and some charset constructor args).  

> make all "business" method implementations of public API thread safe 
> ---------------------------------------------------------------------
>
>                 Key: CODEC-55
>                 URL: https://issues.apache.org/jira/browse/CODEC-55
>             Project: Commons Codec
>          Issue Type: Wish
>            Reporter: Qingtian Wang
>
> Maybe most of the implementations are already thread safe. Just such that 
> codec can say so in general...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to