[Design of JBossCache] - Re: Last chance for any changes to the 2.0.0 API
by manik.surtani@jboss.com
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
19 years, 3 months
[Design of EJB 3.0] - Injection Framework
by wolfc
With the injection framework it should be possible to easily inject
values into beans. Note that the injection framework doesn't specify
properties of a bean in the same way as JavaBeans does. Any field or
setter method can constitute a property.
The injection works in two phases:
1. Setup of the environment
2. Injection of objects
The environment could be setup in JNDI, but this is not required
by the injection framework. For JNDI setup an implementation is
provided.
Injection of objects can be specified programatically. For
annotation based injection an implementation is provided.
It's not IoC or MC injection, because it doesn't take into
account dependencies.
Although the injection framework contains annotation processors JSR-269
is left out of scope.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994610#3994610
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994610
19 years, 3 months