[ 
https://issues.apache.org/jira/browse/CHAIN-101?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13695319#comment-13695319
 ] 

Simone Tripodi commented on CHAIN-101:
--------------------------------------

-1

 * implementing via delegation forces implementing all {{Map}} methods;

 * where _higher flexibility_ is? just to back different {{Map}} implementation 
that could be potentially not thread safe?
                
> Change ContextMap from an inheritance based to a delegation based design
> ------------------------------------------------------------------------
>
>                 Key: CHAIN-101
>                 URL: https://issues.apache.org/jira/browse/CHAIN-101
>             Project: Commons Chain
>          Issue Type: Improvement
>    Affects Versions: 2.0
>            Reporter: Benedikt Ritter
>             Fix For: 2.0
>
>
> Currently ContextMap extends ConcurrentHashMap, but there is nothing we gain 
> from this design decision. A delegation based implementation that takes a Map 
> as constructor arguments and delegates calls to the wrapped map yields higher 
> flexibility.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to