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.
advice是aspect類中的一個方法,在pointcut處用它來做“某些不同的事件”。
In AspectJ, these points are called point cuts, and the code you execute at point cuts is called advice.
在AspectJ中,這些地方都稱為pointcut,在pointcut處所執行的代碼稱為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是一個原始的Pointcut(就象int是一種原始的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.
但是,如果后來有人向該方法中添加了其他參數,切入點就不再匹配。