You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Qingtian Wang (JIRA)" <ji...@apache.org> on 2007/10/08 07:55:50 UTC

[jira] Commented: (CODEC-55) make all "business" method implementations of public API thread safe

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

Qingtian Wang commented on CODEC-55:
------------------------------------

The previous comment brought a very good point. Actually the wish here is to have all "business" methods thread safe. 

For example, if "endcodeBlanks" is a dependency of QCodec, it's OK for that setter to be thread unsafe. Some prefer constructor injection of dependencies (I think BCodec is doing that), others like setter injection. It's just matter of style.

One the dependencies are set up one way or another, it's good enough to have the main "business" methods - encode, decode - thread safe. 

> 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.