subaspect

subaspect

 英

  • 網絡分體

例句

In this iteration I'm going to modify each method to have an annotation and go back to one subaspect for the system (as in Version 2).

這個回合準備修改一個方法一個注釋退回系統使用一個方面版本2一樣)。

Instead of a large N, I've reduced the system coupling to a smaller number of program elements captured by each subaspect, say n-to-1.

已經系統耦合減少每個方面捕獲程序元素比如說n減少1),取代那個大大N

They rely on a pointcut rather than a type, either assuming nothing or deferring a context specification to a concrete subaspect.

依賴切入點不是類型要么任何假定要么上下文規格推遲具體方面

While it's an improvement, this design still leaves us with an N-to-1 dependency between the subaspect and classes.

雖然改進但是這種設計仍然一個方面之間N依賴關系

However, separating the base aspect from the metadata-driven subaspect has a few advantages.

不過基本方面數據驅動方面分離具有若干好處

Listing 5 shows a metadata-drive subaspect of the ReadWriteLockSynchronizationAspect aspect for a banking system.

清單5顯示銀行系統ReadWriteLockSynchronizationAspect方面數據驅動方面

The subaspect below defines a pointcut that captures the join points needing transaction management support.

下面方面定義一個捕獲需要事務管理支持連接切入點

Class with a participant subaspect that is responsible for defining the pointcut for the embedded class.

負責定義嵌入切入點

The subaspect itself will be reusable across systems.

這個方面本身可以系統重用

Now if a class changes, I need to modify only the nested subaspect in that class.

現在如果發生改變那么需要修改嵌套方面即可

Listing 3 shows a banking-specific subaspect that extends the TxMgmt aspect in Listing 2.

清單3顯示一個特定銀行方面擴展清單2TxMgmt方面

Next, I need to write a subaspect for my base aspect.

下一步需要這個基本方面編寫一個方面

熱門查詢