[jboss-dev-forums] [Design of JBossCache] - Re: SingletonStoreCacheLoader in 2.0

vblagojevic@jboss.com do-not-reply at jboss.com
Wed Sep 20 17:05:32 EDT 2006


Whoever wrote CacheLoaderInterceptor.isCustomCacheLoaderConfigured() is a very creative person ! IMO you have to come up with more good reasons why you would do what you propose other than improving already a nicely written method:) Are you almost done SingletonStoreCacheLoader? 


Why not create AbstractDelegatingCacheloader class that combines things that are common to all future delegating cacheloaders. One of them is getCacheLoader method but I would implement all cacheloader methods in AbstractDelegatingCacheloader with delegates. Subclasses then just have to override specific methods. For example, I am looking at AsyncCacheLoader and it needs to override only half a dozen methods. 

What do you think?



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973089#3973089

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973089



More information about the jboss-dev-forums mailing list