This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Spring and the fly likes spring aop Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "spring aop" Watch "spring aop" New topic

spring aop

Manuel Schenkhuizen

Joined: Apr 20, 2011
Posts: 14
Can anybody tell me what is the difference between this() and target()?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

In Spring, AOP is implemented by making a proxy to wrap the "real" objects using aspects. "this()" refers to the proxy, and "target()" refers to the wrapped "real" object.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Don't get me started about those stupid light bulbs.
subject: spring aop