• Post Reply Bookmark Topic Watch Topic
  • New Topic

spring aop  RSS feed

 
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!