[jboss-dev-forums] [Design of JBossCache] - Re: JBoss Cache Public API

bstansberry@jboss.com do-not-reply at jboss.com
Tue Aug 5 10:19:14 EDT 2008


Re: CacheJmxWrapper, it should be OK.  It doesn't do anything in create() that it can't do in start(). So, we can either:

1) Remove create() altogether from CacheJmxWrapper .
2) or leave it there but remove the call to Cache.create().

#1 seems illogical but has minor advantages.  One of the things CacheJmxWrapper,create() does is instantiate the cache if one wasn't injected. Leaving that in a "create" step allows sophisticated users to get a ref to the cache via CacheJmxWrapper.getCache(), register listeners, etc, before start() is called.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168767#4168767

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168767



More information about the jboss-dev-forums mailing list