Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Spring AOP: Help in understanding the ProxyBeanFactory.

 
Eoin Brosnan
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am working my way through Rob Harrop's Pro Spring and I am a little unclear about the following AOP example- Full example can be found here.

What I am wondering is why doesn't he just say


instead of creating the MyBean class and MyBean bean's? What is the reason for the extra steps?

Cheers.

 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, in essence you have a few question in that one question. Meaning there are many subjects covered in that one question of yours.

I will simply state that that is old code. Meaning in real life you would not use the <bean> and the FactoryBean directly in your xml tags to setup AOP. Instead, you will use the aop namespace, like <aop:before>

I recommend finding books or tutorials out there that are more up to date.

Like "Pro Spring 2.5" from Apress, or wait a month or two for the better books on Spring 3.0

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic