"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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...