+1 for event handling. +1 For similar changes in Torque so that a JCS event handling mechanism calls into org.apache.torque.manager.CacheListener. In particular, I want the remote and Lateral caching updates/removes to hook into Torque.
ToddC -----Original Message----- From: Sean Cooper [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 12:37 PM To: [EMAIL PROTECTED] Subject: Alter behavior through event handling? I have not been able to determine if this is possible, but here is what I am trying to do. app 1) When something runs its life in the cache, rather then drop from the cache entirely, call a method on that particular object to refresh its data app 2) When something runs its life in the cache, drop it from the cache, and since the item being cached is a java.io.File reference delete the file from the hard drive (no, I cannot simple cache the java.io.File contents in JCS they aren't truly serializable and need to be streamed/loaded manually to disk) I envision achieving this behavior by intercepting a cache release event of sorts, but I cannot figure out how to latch on to the event handler to process it. Am I missing something? Or are the events and event handlers not supposed to be fooled around with? -Sean --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
