Just read in the Juha JMX book that the Jboss Model MBean is extended with configurable interceptors. Doesn't say anyhting about Standard MBean's having this option. That would make the case for model MBeans.
> It's a bogus
> class since there is no Cache implementation yet.
Thanks ! Now there is an skeleton implementation (CacheImpl). But what I'd have to do is to copy all the comments from CacheImpl to CacheImplMBean, which is a drag...
> I was wondering why you would need a dynamic MBean
> for the cache: the fun of a cache is that it has a
> standard (immutable)interface?
What I had in mind was to implement the Cache interface, but the attributes of the specific implementation should not be hard-coded into any interface. Currently they are hard-coded in CacheImplMBean. The dynamic MBean should use reflection to discover and dynamically expose all getters and setters for a given Cache implementation. That way I woulnd't have to specify stuff like cache modes in CacheImplMBean.
ModelMBeans almost do the job, but they require an XML file, defining all attributes (if I'm correct).
So, if you're interested, I need an MBean which
- is configurable with any given Cache implementation X
- extends Cache and
- dynamically exposes all getters and setters of X
Any takers ? This would be CacheImplMBean.
We might rename some classes anyway, e.g.
- Cache --> JCache or ICache
- CacheImpl --> Cache
- CacheImplMBean CacheMBean
Looked briefly at open mbeans, but that doesn't seem to be what we want. Let's start with the Model MBean.