• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Spring AOP: Help in understanding the ProxyBeanFactory.

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic