[jboss-user] [JBossCache] - Re: CacheAPI

manik.surtani@jboss.com do-not-reply at jboss.com
Thu Mar 29 09:43:39 EDT 2007

Remember that these tests are not how user code would typically interact with the library.  

Beyond that, I agree that eople would start referring to tests and copy stuff.  A lot of the test cases were carried forward from the 1.x series where certain methods such as locks, etc. were available in TreeCache and these were used to test outcomes of operations.  The quickest way to port the tests was to use a cast.  In future this will go away, using proper mock objects or interceptors where possible, to inspect internals.

The purpose of the SPIs are to provide an insight into the cache internals.  Internals that are not needed for normal usage.  These are available to people extending the cache or writing plugins, such as eviction policies, cache loaders and interceptors.  

If you are looking at changing the way locks work (upgrading if necessary) I'd recommend extending the PessimisticLockInterceptor.

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

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

More information about the jboss-user mailing list