欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

The three kinds of aspect configuration

系統 1994 0

原文: http://jroller.com/page/rickard/20050605#the_three_kinds_of_aspect

As I look through our aspect configuration I notice that there is a distinct pattern throughout. The configuration, some of which is XML and some of which is provided by Java source code, can be divided into three kinds.

The first kind is the configuration about a single aspect. It defines the aspect, be it an advice or introduction, and declares its relationship with the world. Its dependencies and what it provides. What goes in and what comes out.

The second kind is the configuration that declares how different aspects should relate in a specific system. It imports aspects, declares precedence between them, and how they should be grouped depending on annotations and what interfaces specific objects implement. What goes in and what comes out. But on a higher level.

The third kind is the configuration that describes specific classes, or "sets of objects". It defines the introductions applied to particular classes, which in a cascading fashion will also determine to some degree what advice will be added. Introductions can be added on a very granular basis, i.e. to a specific class, or to sets of classes, like a package.

The first kind forms the atoms of an AOP application. The smallest lego blocks available. The second kind determines the rules for how the atoms form together into molecules; the natural laws so to speak. These become the building blocks of real structures, and depending on how they are formulated you get different orders of stability, flexibility and/or chaos. The third kind is the actual application, as it is perceived by clients of it, and hence it can be extremely varied.

In terms of reusability the first kind of configuration is extremely reusable as each individual aspect make minimal assumptions about how they are used, even though "minimal" can be quite substantial in some cases. The second kind is less reusable since it imposes assumptions about what set of aspects need to be available for its "laws" to function properly. This is because the second kind is what it responsible for describing how aspects interact, and if some of them cannot be used for some reason the laws suddenly don't behave as they were intended. The third kind is even less reusable as it makes a lot of assumptions about what is available, and the configuration is rather specific in terms of what the end result is supposed to do.

The resulting components adhere to a strictly defined behaviour (depending on the quality of the second kind of configuration, of course), which can be used by other components, and even individual aspects. In this sense, even though everything is separate, they are also inherently intertwined in a symbiotic fashion where it is difficult to separate one from the other.

By acknowledging that there are different kinds of configuration it is possible to introduce a degree of order into an AOP application. Everything is not equal, everything is not the same, which is what gives the developer a possibility to ensure that any new aspect (s)he creates fits into an existing system in a non-disruptive manner.

Harmony follows and everyone is happy.

The End.



Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=388536


The three kinds of aspect configuration


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 五月激情综合网 | 激情在线网 | 国产亚洲精品精品国产亚洲综合 | 小视频在线观看免费 | 色悠久久久久综合欧美99 | 91在线观看网站 | 日韩在线一区二区三区 | 精品一区视频 | 在线观看日韩中文字幕 | 午夜免费视频 | 婷婷综合缴情亚洲五月伊 | 欧美精彩视频在线观看 | 精品一区二区三区免费视频 | 精品国产九九 | 亚洲精品久中文字幕 | 福利国产 | 久久亚洲欧美日韩精品专区 | 国产小视频免费在线观看 | 蜜桃日韩| 国产综合在线视频 | 成人免费一区二区三区视频软件 | dy天堂| 黄色日韩视频 | 偷偷狠狠的日日高清完整视频 | 豆国产97在线 | 亚洲 | 国产九色在线观看 | 免费一区 | 99爱在线精品视频免费观看9 | 日韩 欧美 自拍 | 国产一区中文字幕 | 激情小说激情图片激情电影 | 欧美一区二区三区久久 | 国产高清网址 | 欧美视频不卡 | 亚洲视频 欧美视频 | 精品亚洲一区二区 | 美女性视频网站 | 欧美激烈大尺度叫床的床戏 | 成人午夜视频在线播放 | 99re视频在线观看 | 丁香综合五月 |