If I try to use the getCache() method of CacheJmxWrapper, I can't use generics. :(
I'm tempted to say lucky you. ;)
But I won't -- http://jira.jboss.com/jira/browse/JBCACHE-1131.
Can't promise this will happen though; it's late for an API change. Up to Manik whether he's willing to let me do it.
Re: your read-only interface, I won't be able to do it. Simpler is for you to expose what you want w/ a trivial CacheJmxWrapper subclass that implements your desired interface.
Sorry I didn't check JIRA first, I was in a hurry.
Thanks for the subclass tip. I'm new to MBeans and didn't quite realize that would be so easy to do, but now that you mention it that would be pretty easy and should work just fine. I'll try that in the morning.
Don't apologize; the JIRA didn't exist. :) Your post made me aware of the issue so I added it. The "lucky you" bit was me being droll (I'm personally not a fan of generics.)