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.

但是如果后來有人方法添加其他參數切入點不再匹配

熱門查詢