History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CACHE-235
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Lars Torunski
Reporter: Walco van Loon
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
OSCache

Pluggable EntryRefreshPolicy for CacheFilter

Created: 11/Feb/06 08:19 AM   Updated: 01/Mar/07 04:31 PM
Component/s: Filters
Affects Version/s: 2.2 final
Fix Version/s: 2.3

File Attachments: 1. Text File pluggable-refreshPolicy.patch (6 kb)
2. Text File pluggable-refreshPolicy.patch (6 kb)

Environment: n/a

Flags: Patch


 Description  « Hide
I'm a user of the Servlet CacheFilter, and I recently had a usecase for providing an custom EntryRefreshPolicy. I've made some changes in CacheFilter.java to make this possible. While I was at it, I slightly refactored the class instantiation of the pluggable classes (including ICacheGroupsProvider and ICacheKeyProvider) in init(FilterConfig) to reduce code duplication.


 All   Comments   Change History      Sort Order:
Lars Torunski - [12/Feb/06 01:46 AM ]
Walco, please chech your code, because

return interfaceClass.newInstance();

should be

return clazz.newInstance();

Walco van Loon - [12/Feb/06 05:16 AM ]
Fixed and verified version of the patch; never blindly trust a refactoring tool..

Lars Torunski - [12/Feb/06 06:44 AM ]
implemented in CVS HEAD