- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
面向切面编程(AoP)
面向切面编程(AoP)
Section oriented programming directory
Summary
Code analysis, interface implementation:
Two, sub class implementation scheme.
Three, the basic concepts of AOP:
Summary
Code analysis, interface implementation:
Two, sub class implementation scheme.
Three, the basic concepts of AOP:
Expand edit this paragraph overview
Aspect, Oriented, Programming (AOP), face oriented programming, is a hot topic. AOP main purpose is for the business process of the section extraction, it is confronted with a step or stage in the process, in order to obtain isolation effect between the various parts of logic in the process of low coupling. For example, the most common thing we do is log records. For example, we now provide a service to query student information, but we want to record who has done this query. According to the traditional OOP implementation, then we implement the service interface of a student information query (StudentInfoService) and the class (StudentInfoServiceImpl.java), at the same time in order to record it, then we in the implementation class (StudentInfoServiceImpl.java) in the implementation process to add records. In that case, how many services do we have to implement? That is to add these logging processes to each implemented class. Doing so can be a bit tedious, and each implementation class is tightly coupled to the behavior of logging the service logs, violating object oriented rules. So how can we separate the record service from the business process? Looks that students in their query service, but behind the log records of these behaviors, but the query services for students who do not know the existence of these records, this is what we are going to discuss the purpose of AOP. AOP programming seems to be our function in a certain aspect of the proposed, and a number of objects isolated, so that a number of objects and reduce the coupling, you can function on the programming.
Edit this section code analysis
Lets start directly with the code, a
您可能关注的文档
- 锁定钢板:要点和技巧.doc
- 键盘字母排列轶事和盲打术.doc
- 长沙礼白果园和化龙池保护和研究.doc
- 长株潭城市群环境与生态总体规划.doc
- 闭路电视监控和周边防范系统.doc
- 闭路电视监控系统设备选择和安装.ppt
- 闭路电视监控系统设备和技术介绍.doc
- 闭路监控系统中摄像机镜头选择.doc
- 闭路监控系统应急预案.doc
- 镍钛形状记忆合金材料生物相容性研究进展.doc
- 面试平面设计师都问些什么(What do the interview graphic designers ask).doc
- 面试自我介绍技巧(Interview self introduction skills).doc
- 鞋服企业打造国内品牌新产业链(Shoes and clothing enterprises to build domestic brand new industry chain).doc
- 韧带(Ligament).doc
- 音乐的码率(Music bitrate).doc
- 音响1(Sound 1).doc
- 音响器材介绍(Sound equipment introduction).doc
- 音响常识及专业术语(Sound knowledge and technical terms).doc
- 音乐论文(Music thesis).doc
- 音响的摆放(Sound placement).doc
文档评论(0)