[jboss-dev-forums] [Design of JBossCache] - Re: Classloader leak via CacheImpl.invocationContextContaine

bstansberry@jboss.com do-not-reply at jboss.com
Fri Jun 8 10:16:37 EDT 2007


That's via the Option too, right?  

All the stuff in Option is appropriate for a client API, except I guess failSilently which AIUI is an implementation detail of putForExternalRead.

How about using interfaces for this -- InvocationContext and InvocationContextSPI, plus InvocationContextImpl?  The InvocationContext interface just exposes the getters that make sense for a client, and via getOptionOverrides() makes the Option available.

If getOptionOverrides() is the only thing a client InvocationContext interface should expose, then maybe it makes more sense to change Cache so it exposes Cache.getOptionOverride() rather than getInvocationContext().  CacheSPI can expose getInvocationContext().

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

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



More information about the jboss-dev-forums mailing list