Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

spring aop

 
Manuel Schenkhuizen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anybody tell me what is the difference between this() and target()?
TKS
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic