aspose file tools*
The moose likes Spring and the fly likes Spring AOP: Help in understanding the ProxyBeanFactory. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring AOP: Help in understanding the ProxyBeanFactory." Watch "Spring AOP: Help in understanding the ProxyBeanFactory." New topic
Author

Spring AOP: Help in understanding the ProxyBeanFactory.

Eoin Brosnan
Ranch Hand

Joined: Dec 12, 2009
Posts: 40
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

Joined: Feb 05, 2001
Posts: 17257
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring AOP: Help in understanding the ProxyBeanFactory.