Hello All, I contributed a patch for a new feature. I don't know if it is my role to mark the issue as Resolved or is it the Apache commiter that must do so ?
Note that I junit tested the patch so I hope you can integrated it rapidly. Regards Philippe On Sun, Jan 9, 2011 at 5:28 PM, Philippe Mouawad (JIRA) <j...@apache.org>wrote: > > [ > https://issues.apache.org/jira/browse/OFBIZ-4098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12979354#action_12979354] > > Philippe Mouawad edited comment on OFBIZ-4098 at 1/9/11 11:28 AM: > ------------------------------------------------------------------ > > Hello, > Here is the patch that enables providing an alternative Cache > implementation, setup is done in CacheManagerFactory and defaults to ofbiz. > So current behaviour is exactly the same as before but refactoring was done > to ease new Implementation plugin. > > I modified only on thing in JUnit test case, I added assertSame to make it > compare through equals instead of references, because UtilCache is now only > a Facade to real cache. > I will provide within a week EhCache implementation provided you agree with > this first step. > > Philippe Mouawad > http://www.ubik-ingenierie.com > > was (Author: pmouawad): > Here is the patch that enable providing an alternative Cache > implementation. > > I modified only on thing in JUnit test case, I added assertSame to make it > compare through equals instead of references, because UtilCache is now only > a Facade to real cache. > > > 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: patch-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. > > -- Cordialement. Philippe Mouawad. Ubik-Ingénierie