The code gets extensively (albeit loosely) coupled to the underling framework
SCJP 1.5, SCEA, ICED (287,484,486)
Mark Spritzler wrote:I would also assert that the majority of times you do a configuration change, you will also be re-compiling. I have always found that to be the case when I was working with EJBs and Spring.
[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Mark Spritzler wrote:
The code gets extensively (albeit loosely) coupled to the underling framework
While all the pros and cons to xml and all the pros and cons of Annotations are all very valid. I would disagree with the above statement. In that I need absolutely no framework jars at runtime to have that code run, those Annotations would then be ignored.
Mark
Jeanne Boyarsky wrote:
I do think there are legitimate scenarios to change just the XML. For example configuring security differently in different environments. But the fact that something is defined as a bean is pretty constant!
SCJP 1.5, SCEA, ICED (287,484,486)
but it still seems to me that writing injection information in the class, prevents the coder from configuring the same bean class with multiple different wirings, or is it possible?
Consider Paul's rocket mass heater. |