"vblagojevic(a)jboss.com" wrote :
| Whoever wrote CacheLoaderInterceptor.isCustomCacheLoaderConfigured() is a very
creative person !
|
If you were being serious, I'll take credit for it - if you were being sarcastic, I
have no idea who wrote that! :-)
"vblagojevic(a)jboss.com" wrote :
| 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.
|
I think this is a good idea, since the majority of cases the call is just passed to the
underlying loader. If someone just extends the AbstractDCL he'd end up with the same
basic features of the underlying cache loader, and any added behaviour will have to be
introduced by overriding methods. It would have to be javadoc'd pretty clearly to
that effect.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973209#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...