[jboss-dev-forums] [Design of JBossCache] - Re: PojoCache physical POJO field mapping and region

ben.wang@jboss.com do-not-reply at jboss.com
Thu Oct 5 23:04:21 EDT 2006


"genman" wrote : 
  | Why couldn't you create a node wrapper and hang your meta data from it?
  | 
  | 
  |   | class DelegatingNode implements Node {
  |   |   Node delegate;
  |   |  ...
  |   | }
  |   | 
  |   | class PojoNode extends DelegatingNode {
  |   |   Object secretData;
  |   | }
  |   | 
  | 
  | Or...
  | 
  | There's a couple of internal cache fields, such as TreeCache.UNINITALIZED, etc. Rather than be strings, perhaps they could be typed using an interface and hidden from the user.
  | 
  | Maybe create a partitioning map wrapper that delegates to the ConcurrentHashMap or whatever, and has "secret" storage for internal data.
  | 

This is certainly interesting to hide the internal fields from the users. But this will involve the underlying Cache design change either with a new API. Or if we access it directly, how do we go through the cache interceptor chain?

I have created a Jira to diiscuss it:
http://jira.jboss.com/jira/browse/JBCACHE-797

Thanks,

-Ben

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

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



More information about the jboss-dev-forums mailing list