By jpz
via jpz-log.info
Published: Nov 06 2009 / 12:14
Guice is a really pleasant DI framework that does its job with brilliant simplicity from a developer point of view. Guice has more than DI capabilities though, as long as you spice it up with extensions libraries. Today I'll show you the AOP capabilities that Guice offers.
Comments
William Louth replied ago:
Author clearly does not understand the subject matter and the cost of each approach. The AOP Alliance approach is extremely costly (slow) with little possibilities of optimization whereas aspects in AspectJ can reduce the overhead by a huge factor by bypassing the creation of contextual bindings (args) when not needed by the aspect itself.
Not to mention this is just another AOP logger example.
Julien Ponge replied ago:
William's comment on the AOP Alliance design makes sense: in such cases.
MCII replied ago:
AOP, DI, Spring, ... failed approaches of the past.
Julien Ponge replied ago:
Oh... politics :-)
Voters For This Link (17)
Voters Against This Link (2)