Link Details

Link 280629 thumbnail
User 52985 avatar

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.
  • 17
  • 2
  • 1561
  • 527

Comments

Add your comment
User 61474 avatar

William Louth replied ago:

0 votes Vote down Vote up Reply

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.

User 52985 avatar

Julien Ponge replied ago:

0 votes Vote down Vote up Reply

William's comment on the AOP Alliance design makes sense: in such cases.

User 388907 avatar

MCII replied ago:

0 votes Vote down Vote up Reply

AOP, DI, Spring, ... failed approaches of the past.

User 52985 avatar

Julien Ponge replied ago:

0 votes Vote down Vote up Reply

Oh... politics :-)

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.