[jboss-dev-forums] [Design of JBossCache] - Re: static field replication in PojoCache
ben.wang@jboss.com
do-not-reply at jboss.com
Mon Nov 13 03:17:43 EST 2006
"bela at jboss.com" wrote :
| I think this is not intuitive: @PojoCacheable replicates *all* variables, so static vars should be included.
| You can exclude static vars using the transient keyword or @transient annotation.
But keep in mind that by default, we skip replicating static, final, and transient now. If we want to change the default to replicate static field, question is how often people want to replicate static field? If often, then yes, default is good. But otherwise, default may not be that good.
And what about final field default?
anonymous wrote :
| Why should only 1 PojoCache be allowed to have static var replication inside the same VM ? This sounds like an arbitrary restriction...
Yeah, agreed then. I am still thinking if there is a better way to support it other than explicit api.
anonymous wrote :
| Still much better than @PojoCacheable, which is horrible
I will create a new thread to discuss this then.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985332#3985332
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985332
More information about the jboss-dev-forums
mailing list