[Opensymphony-oscache] Access to EventListeners

"Roger E." <[email protected]> Mon, 08 Aug 2005 10:44:44 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <24946057.1123515919455.JavaMail.os-j2ee@opensymphony01.contegix.com>
Hello,

I am looking for programmatic access to the cache statistics.

I have been playing with the included EventListeners and the StatisticListenerImpl example.  They work well.  However, I don't want to use a logging facility to print the stats - I would rather create a JSP to display the stats (at the very least get access to the event listener toString()) on demand.

So how would I get access to the registered event listener?  The getCacheEventListeners() method is protected.  I could easily extend GeneralCacheAdministrator to make public getCacheEventListeners() but I am hoping I am missing something built-in.

Thanks,
Roger

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=5284&messageID=12429#12429