It's so easy to write a custom cache, just copy the OSCache implementation and modify it however you like. You can plug it in by using the fully qualified class name in place of "OSCACHE" or by creating your own type alias (e.g. "MYOSCACHE") and using that.
Clinton On Wed, Jul 30, 2008 at 10:38 AM, Jeff Butler <[EMAIL PROTECTED]> wrote: > Yep - not too elegant. iBATIS doesn't have any kind of shutdown > processing, so there is no hook to call. > > I suggested copy/paste because the GeneralCacheAdministrator instance > variable in the OSCacheController is private. Otherwise you could just > subclass. But I don't think it's a big risk - it's a short class and > hasn't changed much. > > Jeff Butler > > On Wed, Jul 30, 2008 at 8:30 AM, Darren Davison <[EMAIL PROTECTED]>wrote: > >> On Wed, Jul 30, 2008 at 08:03:13AM -0500, Jeff Butler wrote: >> > I'd implement your own cache controller by copying the source for >> iBATIS' >> > OSCacheController class. Then you could expose the >> > GeneralCacheAdministrator and manipulate it yourself. >> >> Thanks Jeff, though this is what I was trying to avoid if poss. Thought >> there might have been an iBATIS hook that I missed. Copy/Paste is not >> the most elegant way to extend :) >> >> No real biggie I guess. >> >> Cheers, >> >> -- >> Darren Davison >> Public Key: 0xE855B3EA >> >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v1.4.6 (GNU/Linux) >> >> iD8DBQFIkGzvVgOfSOhVs+oRArr1AKCtefveQBgFqGJiXX8a44EUjmgN8gCdGx2r >> aJCfw3Psg68oXmlVeWSiGMU= >> =SynT >> -----END PGP SIGNATURE----- >> >> >
