Sping AOP的理解(国外英文资料).doc

  1. 1、本文档共4页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Sping AOP的理解(国外英文资料)

Sping AOP的理解(国外英文资料) The mask is executed first, and the call is forwarded to the actual target bean. Now you can think about yourself, how to make out the camouflage, only not found by the caller (inspection, by the JVM JAVA is strong type checking, where to check type). 1. Implementation and target class the same interface, I also like you interface, as the upper interface levels of the call, so I just disguised as the target class and class (implements the same interface, we are brothers), has escaped the type check, to the Java runtime, using polymorphic late binding (so the spring USES the runtime), camouflage class (the proxy class) will become the real implementation of the interface, and he wrapped the real inside the target class, finally realize the goal of specific function or class, something came just before class in dry (writing log, security checks, things, etc.). Its like, a person let you do things, every time this time, your brother will come out first, he points out, of course, thought it was you, although you this younger brother cant do this, but he know you can do, so he promised to come down, and receive a little gift (writing log), accept the gift, to give somebody else to do the things, so your brother find you this brother to again, finally, is it done or yourself. But you dont know that your brother has received a gift. Youre just concentrating on getting it done. Along this line of thought, thought, if the class itself is not implement an interface, you conceal me, I have no chance to let you come up with a twin brother, then 2 kind of agency way and create a subclass of a target class, give birth to a son, let the son I disguise 2. To generate a subclass call, this time with children as a camouflage, of course it can escape the JVM strong type checking, I inherited it, look not to come out, of course, a subclass overrides the target class all the methods, and of course in the rewriting method, not only can realize the function of the ta

文档评论(0)

f8r9t5c + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8000054077000003

1亿VIP精品文档

相关文档