首页> 外文期刊>MSDN Magazine >Policy Injection in Unity
【24h】

Policy Injection in Unity

机译:Unity中的策略注入

获取原文
获取原文并翻译 | 示例
       

摘要

In the past two articles, I presented aspect-oriented programming (AOP) using Microsoft Unity 2.0. Formalized in the 1990s as a way to further improve and complement object-oriented programming (OOP), AOP was recently revamped, and many Inversion of Control (IoC) libraries support it. Unity is no exception. The main purpose of AOP is to let developers more effectively deal with crosscutting concerns. In essence, AOP addresses the following question: When you design an object model for an application, how do you deal with aspects of the code such as security, caching or logging? These aspects are key to implementation, but don't strictly belong to the objects in the model you're building. Should you spoil your design to incorporate non-business aspects? Or are you better off decorating your business-oriented classes with additional aspects? If you choose the latter, AOP basically provides a syntax to define and attach these aspects.
机译:在过去的两篇文章中,我介绍了使用Microsoft Unity 2.0的面向方面的编程(AOP)。作为进一步完善和补充面向对象编程(OOP)的一种方法,AOP于1990年代正式成立,最近对其进行了改进,并且许多Inversion of Control(IoC)库都支持它。团结也不例外。 AOP的主要目的是让开发人员更有效地处理横切关注点。本质上,AOP解决了以下问题:在为应用程序设计对象模型时,如何处理代码的各个方面,例如安全性,缓存或日志记录?这些方面是实现的关键,但并不严格属于要构建的模型中的对象。您是否应该破坏设计以纳入非业务方面?还是您最好用其他方面来装饰您的面向业务的类?如果选择后者,则AOP基本上会提供一种语法来定义和附加这些方面。

著录项

  • 来源
    《MSDN Magazine》 |2011年第2期|p.101214-15|共4页
  • 作者

    DINO ESPOSITO;

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

  • 入库时间 2022-08-18 02:49:26

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号