[jboss-dev-forums] [Design of JBossCache] - Re: Last chance for any changes to the 2.0.0 API
manik.surtani@jboss.com
do-not-reply at jboss.com
Mon Dec 18 06:36:11 EST 2006
anonymous wrote :
|
| Actually, it's pretty close to what I'd like to see. "UnversionedNode" seems a little long for a name. And usually, you use naming to describe what something is, not what it isn't.
|
|
Since access to nodes should take place using the interfaces (Node or NodeSPI), versioning and locking would exist in NodeSPI. As such, an implementation used for Pessimistic Locking, that does not implement versioning would have to throw UnsupportedOperationExceptions for get/setDataVersion() defined in NodeSPI.
And hence the descriptive implementation name: UnversionedNode - "a Node implementation that does not implement versioning as defined by the NodeSPI contract".
I agree that this negative implementation is a bit awkward, but unless we have a sub-interface to NodeSPI that defines versioning (and is even more awkward IMO) this is the cleaner of the two.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994625#3994625
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994625
More information about the jboss-dev-forums
mailing list