[jboss-dev-forums] [Design of JBossCache] - Re: PojoCache physical POJO field mapping and region
genman
do-not-reply at jboss.com
Thu Oct 5 14:47:30 EDT 2006
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.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3976388#3976388
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3976388
More information about the jboss-dev-forums
mailing list