HiveMind

Good article on TSS about HiveMind the Apache/Jakarta iteration of a dependency injection service container.

Comments

RE: HiveMind

Hmmmm, that is a good article but I will need some time to digest half of that, my java classes need an XML descriptor and then are instantiated using IoC rather than me doing it and rather than use a database directly I use Hibernate - which has its own set of XML descriptors and such - and then must be plugged back in to my original HiveMind descriptor thingy.

Dont get me wrong at the end of the process this is cool as hell but werent we saying something about software development and it being complicated just the other day?

Maybe its just me, I am trying to see the benefits to this entire IoC thing and still not quite there (the "mock" objects thing I get, thats a real benefit, and the end result seems very elegant and "cool" as far as the code goes, but man its a lot of hoops to get setup and rolling and all your developers on board and so on).

RE: HiveMind

Yeah. The whole descriptor thing is still for shit. Hibernate 3, however, now supports doing everything with annotations, which is killer. I think once things like HiveMind/Spring get to the point of just using code annotations rather than a crap-ton of XML DDs I will start to take them a lot more seriously.

While I understand at the fundamental level why IoC is cool, the "10,000 configs" is for the birds and just makes your code much much harder to follow than just using your own abstract service factories.

RE: HiveMind

Agreed. I read this and just wasnt sure why I should have 6 XML descriptor files rather than just instantiate the objects and validate them the old fashioned way, manually.

RE: HiveMind

weighing up the time taken to configure the birds nest of XML and the end result i.e. elegant code that can be easily tested is it worth it?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.