pointcut

pointcut

 英

  • 网络切入点;切点;声明一个切入点

例句

If you develop with aspects, however, you could represent such behavior as advice, applied to any operation that matches a certain pointcut.

但是如果方面开发那么可以这些行为表示建议advice),应用所有匹配某个切点pointcut操作

You know that the Website is not supposed to be highlighted, so you rewrite the pointcut to exclude that unintended match.

知道这个Website应该突出显示因此重新编写这个切点排除需要匹配

You can consider the pointcut to be a query of your code that returns a set of join points.

可以切入点想象编码一个查询返回一系列连接

The sophistication of the pointcut language is a differentiating factor among the various AOP systems.

切入点语言复杂程度不同AOP系统一种区分元素

A well-built pointcut is less likely to stop matching the required locations after changes are made to the code.

更改代码之后构建良好切入点可能停止匹配位置

The power of the AspectJ pointcut expression language is not merely about allowing sophisticated constructs.

AspectJ切入点表达式语言强大不仅仅是关于复杂结构

We do not believe in reinventing the wheel, and defining our own pointcut expression language was unjustifiable.

我们相信重新发明轮子而且定义我们自己切入点表达语言合理

The default method signature for an advice is to take a single parameter, which provides information about the pointcut being intercepted.

advice默认方法签名接受一个参数参数提供关于中断pointcut信息

Advice targeted with this pointcut can never be invoked inappropriately, with an argument of the wrong type, or no matching argument.

这个切入点通知目标永远不可能错误调用通过错误类型参数或者没有匹配参数

More powerful yet is the ability to apply any arbitrary (but applicable) interceptor to any defined pointcut.

然而强大能力可以任何可用截取程序应用定义切入点

In other words, this first version of the system leaves us with N-to-one coupling between program elements and the pointcut.

换句话说系统第一版本使我们得到程序元素切入点之间一个N耦合

An advice is a method in an aspect class that's used as the "something different" to be done at a pointcut.

adviceaspect一个方法pointcut某些不同事件”。

In AspectJ, these points are called point cuts, and the code you execute at point cuts is called advice.

AspectJ这些地方称为pointcutpointcut处所执行代码称为advice

Annotation, which can be used to annotate advice to suppress unchecked warnings arising from pointcut matching.

注释可以建议进行注释抑制切入点匹配发生未检测警告

A sub-aspect needs to provide this information, in the form of a pointcut.

一个方面需要提供这种信息也就是pointcut形式

A pointcut, then, is a language construct that picks out a set of join points based on defined criteria.

那么Pointcut就是一种语言构造这种构造根据定义标准挑选joinpoint

Different variations of that theme can be used where appropriate without having to write complex pointcut code.

可以适当地方使用不同主题变量不必编写复杂切入点代码

Pointcut support for composition allows you to combine simple pointcuts into more complicated ones.

切入点支持复合composition),允许简单切入点组合复杂切入点

Advice to pointcut bindings cannot be controlled by the developer.

通知切入点绑定不能开发人员控制

Later in the article, I rewrite the pointcut as I demonstrate some of the testing patterns.

本文后面重写这个切点展示一些测试模式

execution is a primitive pointcut (just as int is a primitive Java type).

execution一个原始Pointcutint一种原始Java类型)。

The advice mechanism specifies what action to take when a pointcut is matched in the execution of the program.

通知advice机制指定程序执行过程遇到匹配切入点应当采取什么行动

The pointcut expression, if you can write one, will be complex and often unstable with respect to the system evolution.

如果可以编写一个切入点表达式那么随着系统发展变得复杂并且通常稳定

The pointcut required in these situations can get unwieldy, as you can see for yourself in the following example.

这种情况下需要切入点可能变得很难处理下面例子看到

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

依赖切入点不是类型要么任何假定要么上下文规格推迟具体方面

The project using the aspect would then extend it with a pointcut defining the appropriate scope for the aspect to apply to.

然后使用方面项目可以切入点扩展切入点定义将要应用方面适当范围

Rather than enumerating each method as I did in Listing 1, you write what you hope will be a more robust pointcut.

不用清单1那样枚举一个方法可以说明想要一个健壮切点

This means that only calls to the distance method in such an object are selected by this pointcut.

意味这样一个对象这个切入点选择距离程序调用

Instead of extending an abstract aspect, this time you write your mock target so that it matches a pointcut on the aspect to be tested.

这次不是扩展一个抽象而是编写mock目标使匹配测试方面一个切点

The pointcut is an expression that describes a set of join points.

切入点一个用来描述一套连接表达式

You then break the system into several parts such that you can find a good pointcut expression for each subsystem.

然后系统分解几部使得每个子系统可以切入点表达式

Advice invocation overhead at run time, needed to determine pointcut matching.

运行通知调用开销需要决定切入点匹配

You can test that the pointcut is correct by checking whether the aspect advises the mock target.

可以通过检查方面是否建议mock目标测试切点是否正确

The decision usually comes down to whether it makes sense to externalize the pointcut expression from Java code altogether.

决定通常取决于使切入点描述完全Java代码具体出来是否意义

Fortunately, AspectWerkz provides easy ways of accessing information about the pointcut being intercepted.

幸运AspectWerkz提供访问中断pointcut信息方便方法

A pointcut specifies the properties of a given element of a program.

切入点指定程序给定元素属性

In a future version of AJDT, a "uses pointcut" relationship could be exposed to facilitate this connection.

AJDT未来版本可能公开使用切入点usespointcut)”帮助实现这个连接

This would most likely involve an abstract aspect with an abstract pointcut.

有可能涉及一个带有抽象切入点抽象方面

By using the args pointcut designator, you are able to expose the exception instance and use it in your reporting.

通过使用argsPointcut指示器可以找到异常实例可以报告使用

But if someone later adds an extra parameter to the method, the pointcut will no longer match.

但是如果后来有人方法添加其他参数切入点不再匹配

热门查询