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.

下一步需要这个基本方面编写一个方面

热门查询