[jboss-dev-forums] [Design of JBossCache] - Re: API Issues integrating 2.0.0.DR1 in HEAD

manik.surtani@jboss.com do-not-reply at jboss.com
Tue Oct 17 09:55:10 EDT 2006


anonymous wrote : 
  | 1) How do you set an Option? I thought there was an InvocationContext.currentContext() or something. Doesn't seem to be. Only thing I see is a getter/setter in CacheSPI, but my code shouldn't need CacheSPI. 
  | 

I did do InvocationContext.currentContext() for a while, but ran into problems when using multiple cache instances in the same JVM and thread.

You would now have to do CacheSPI.getInvocationContext(), although I see your point about your not needing to use this interface.  It is a bit heavy for the Cache interface though.  Any other thoughts, otherwise I fear it would just have to be in Cache.

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

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



More information about the jboss-dev-forums mailing list