[ 
https://issues.apache.org/jira/browse/OFBIZ-4098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979370#action_12979370
 ] 

Adrian Crum commented on OFBIZ-4098:
------------------------------------

Instead of creating an interface called ICache and having UtilCache implement 
that interface, I wonder if it would be better to make UtilCache the interface 
and have a concrete class (UtilCacheImpl?) implement it. Third-party code that 
uses UtilCache will have to recompile, but the change would move us in the 
direction of programming to an interface-based API.

Just a suggestion.


> Ability to plug a new Cache Implementation
> ------------------------------------------
>
>                 Key: OFBIZ-4098
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-4098
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: framework
>    Affects Versions: SVN trunk
>            Reporter: Philippe Mouawad
>         Attachments: ofbiz-4098.patch
>
>   Original Estimate: 96h
>  Remaining Estimate: 96h
>
> Hello,
> I would like to contribute a patch to enable switching from Ofbiz native 
> Cache (today UtilCache) to another implementation like EhCache for example.
> To avoid big code impacts, UtilCache would stay the same and delegate to the 
> real
> cache implementation this will impact less classes and big impacts
> would stay in UtilCache package.
> Ability to plug another implementation like EhCache for example would enable 
> easily plugin with Terracota for example which on big Web Site gives much 
> performance enhancements.
> Is the format to contribute this kind of evolution also a patch ?
> Thank you
> Regards
> Philippe
> http://www.ubik-ingenierie.com

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