Any:如果一个本地事务上下文是从客户端传播的,那么在全局事务中运行时环境将从组件分派方法。
Any: If a global transaction context has been propagated from the client, the runtime environment will dispatch methods from the component in a global transaction.
通过安排不同类型的对象来执行公共方法,我们将分派决定移到对象中并从显式条件块中消除。
By arranging for objects of different types to implement common methods, we move the dispatch decision into the objects and out of an explicit conditional block.
就像开发人员不该担心虚拟方法分派的开销一样,他们也不用担心通知的调用开销。
Just as developers do not worry about the overhead of a virtual method dispatch, they will not worry about the invocation overhead of advice.
应用推荐