单词 | pointcut | ||||||||||||||
释义 | pointcut
更多释义 收起释义 例句释义: 切入点,切点,声明一个切入点 1. If you develop with aspects, however, you could represent such behavior as advice, applied to any operation that matches a certain pointcut. 但是如果用方面开发,那么就可以将这些行为表示为建议(advice),应用到所有匹配某个切点(pointcut)的操作。 www.ibm.com 2. You know that the Website is not supposed to be highlighted, so you rewrite the pointcut to exclude that unintended match. 您知道这个Website不应该突出显示,因此重新编写这个切点以排除不需要的匹配。 www.ibm.com 3. You can consider the pointcut to be a query of your code that returns a set of join points. 你可以把切入点想象成对你的编码的一个查询,用它来返回一系列的连接点。 www.ibm.com 4. The sophistication of the pointcut language is a differentiating factor among the various AOP systems. 切入点语言的复杂程度是不同AOP系统的一种区分元素。 www.ibm.com 5. A well-built pointcut is less likely to stop matching the required locations after changes are made to the code. 在更改代码之后,构建良好的切入点不太可能停止匹配所需的位置。 www.ibm.com 6. The power of the AspectJ pointcut expression language is not merely about allowing sophisticated constructs. AspectJ切入点表达式语言的强大不仅仅是关于复杂的结构。 www.infoq.com 7. We do not believe in reinventing the wheel, and defining our own pointcut expression language was unjustifiable. 我们不相信重新发明的轮子,而且定义我们自己的切入点表达语言是不合理的。 www.infoq.com 8. The default method signature for an advice is to take a single parameter, which provides information about the pointcut being intercepted. advice的默认方法签名接受一个参数,该参数提供关于中断的pointcut的信息。 www.ibm.com 9. Advice targeted with this pointcut can never be invoked inappropriately, with an argument of the wrong type, or no matching argument. 这个切入点的通知目标永远不可能被错误调用,通过错误类型的参数,或者没有匹配的参数。 www.infoq.com 10. More powerful yet is the ability to apply any arbitrary (but applicable) interceptor to any defined pointcut. 然而它更强大的能力是可以把任何(但可用的)截取程序应用到定义的切入点。 www.ibm.com 1. In other words, this first version of the system leaves us with N-to-one coupling between program elements and the pointcut. 换句话说,系统的第一个版本使我们得到程序元素与切入点之间的一个N对一的耦合。 www.ibm.com 2. 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处用它来做“某些不同的事件”。 www.ibm.com 3. In AspectJ, these points are called point cuts, and the code you execute at point cuts is called advice. 在AspectJ中,这些地方都称为pointcut,在pointcut处所执行的代码称为advice。 www.ibm.com 4. Annotation, which can be used to annotate advice to suppress unchecked warnings arising from pointcut matching. 注释,可以用它对建议进行注释,以抑制从切入点匹配发生的未检测警告。 www-128.ibm.com 5. A sub-aspect needs to provide this information, in the form of a pointcut. 一个子方面需要提供这种信息,也就是pointcut的形式。 www.ibm.com 6. A pointcut, then, is a language construct that picks out a set of join points based on defined criteria. 那么,Pointcut就是一种语言构造,这种构造根据已定义的标准挑选一组joinpoint。 www.ibm.com 7. Different variations of that theme can be used where appropriate without having to write complex pointcut code. 可以在适当的地方使用不同的主题变量,不必编写复杂的切入点代码。 www.ibm.com 8. Pointcut support for composition allows you to combine simple pointcuts into more complicated ones. 切入点支持复合(composition),这就允许把简单的切入点组合成更复杂的切入点。 www.ibm.com 9. Advice to pointcut bindings cannot be controlled by the developer. 通知到切入点的绑定不能由开发人员控制。 www.ibm.com 10. Later in the article, I rewrite the pointcut as I demonstrate some of the testing patterns. 在本文的后面,我将重写这个切点以展示一些测试模式。 www.ibm.com 1. execution is a primitive pointcut (just as int is a primitive Java type). execution是一个原始的Pointcut(就象int是一种原始的Java类型)。 www.ibm.com 2. The advice mechanism specifies what action to take when a pointcut is matched in the execution of the program. 通知(advice)机制指定在程序执行过程中遇到匹配的切入点时应当采取什么行动。 www.ibm.com 3. The pointcut expression, if you can write one, will be complex and often unstable with respect to the system evolution. 如果可以编写一个切入点表达式,那么它会随着系统的发展而变得复杂,并且通常不很稳定。 www-128.ibm.com 4. The pointcut required in these situations can get unwieldy, as you can see for yourself in the following example. 在这种情况下,所需要的切入点可能会变得很难处理,从下面的例子中就可看到。 www.ibm.com 5. They rely on a pointcut rather than a type, either assuming nothing or deferring a context specification to a concrete subaspect. 依赖于切入点而不是类型,要么不作任何假定,要么将上下文规格推迟到具体的子方面中。 www.ibm.com 6. The project using the aspect would then extend it with a pointcut defining the appropriate scope for the aspect to apply to. 然后,使用方面的项目就可以用切入点扩展它,切入点定义了将要应用的方面的适当范围。 www.ibm.com 7. Rather than enumerating each method as I did in Listing 1, you write what you hope will be a more robust pointcut. 不用像在清单1中那样枚举每一个方法,可以说明想要找的是一个更健壮的切点。 www.ibm.com 8. This means that only calls to the distance method in such an object are selected by this pointcut. 这意味着在这样一个对象中这个切入点只会选择对距离程序的调用。 www.ibm.com 9. 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目标,以使它匹配要测试的方面上的一个切点。 www.ibm.com 10. The pointcut is an expression that describes a set of join points. 切入点是一个用来描述一套连接点的表达式。 www.ibm.com 1. You then break the system into several parts such that you can find a good pointcut expression for each subsystem. 然后将系统分解为几部分,使得每个子系统都可以有好的切入点表达式。 www.ibm.com 2. Advice invocation overhead at run time, needed to determine pointcut matching. 运行时的通知调用开销,需要决定切入点匹配。 www-128.ibm.com 3. You can test that the pointcut is correct by checking whether the aspect advises the mock target. 可以通过检查方面是否建议了mock目标来测试切点是否正确。 www.ibm.com 4. The decision usually comes down to whether it makes sense to externalize the pointcut expression from Java code altogether. 决定通常取决于使切入点描述完全从Java代码具体出来是否有意义。 www.infoq.com 5. Fortunately, AspectWerkz provides easy ways of accessing information about the pointcut being intercepted. 幸运的是,AspectWerkz提供了访问中断的pointcut的信息的方便方法。 www.ibm.com 6. A pointcut specifies the properties of a given element of a program. 切入点指定程序给定元素的属性。 www-128.ibm.com 7. In a future version of AJDT, a "uses pointcut" relationship could be exposed to facilitate this connection. 在AJDT的未来版本中,可能会公开“使用切入点(usespointcut)”来帮助实现这个连接。 www.ibm.com 8. This would most likely involve an abstract aspect with an abstract pointcut. 这很有可能涉及一个带有抽象切入点的抽象方面。 www.ibm.com 9. By using the args pointcut designator, you are able to expose the exception instance and use it in your reporting. 通过使用argsPointcut指示器,你可以找到异常实例,还可以在你的报告中使用它。 www.ibm.com 10. But if someone later adds an extra parameter to the method, the pointcut will no longer match. 但是,如果后来有人向该方法中添加了其他参数,切入点就不再匹配。 www.ibm.com 1. Pointcut declarations in AspectWerkz are string values attached to pointcut "methods, " or stand-alone in XML. AspectWerkz的切入点声明是附加到切入点“方法”的字符串值,也可以在XML文件中独立存在。 www.ibm.com 2. A "pointcut" is a construct used to programmatically declare and group join points. 一个“衡切点”是一个被用作程序声明和分组连接点的构造。 www.ibm.com 3. After all, if you can identify the join points needing annotations, you can write a pointcut and advise those join points directly. 总之,如果可以确定需要注释的连接点,那么就可以编写一个切入点,并直接通知这些连接点。 www-128.ibm.com 4. In Figure 1, you can see the difference in how two tools handle the error of a missing right parenthesis in a pointcut. 在图1中可以看到两种工具处理切入点中括号错误的区别。 www.ibm.com 5. I chose a very simple pointcut for the initial version of the example. 在这个例子的初始版本中,我选用一个非常简单的切点。 www.ibm.com 6. This aspect concretizes the highlightedTextProperties pointcut by selecting all method executions on the mock target. 这个方面通过选择mock目标上所有的方法执行具体化了highlightedTextProperties切点。 www.ibm.com 7. Note that an upcoming release of JBoss will provide some static typing of pointcut parameters to address this issue. 注意,即将发布的JBoss会提供一些静态类型的切入点参数来解决这一问题。 www.ibm.com 8. The pointcut expression language is the same as in AspectJ's own syntax, and the semantics are identical. 这种切入点表达语言和AspectJ自己的语法一样,而且语义相同。 www.infoq.com 9. AspectJ has a well thought out, rigorously defined and well documented pointcut language. AspectJ有个思路很好,严格定义和充足文档的切入点语言。 www.infoq.com 10. The abstract pointcut, myClass, must be provided by any aspect that extends Trace. 抽象的切入点是myClass,它必须通过可以扩展Trace的方面来提供。 www.ibm.com 1. This combines the pointcut with the advice method, making the aspect a complete module. 这将切入点和通知方法结合在一起,使切面成为一个完整的模块。 www.infoq.com 2. Benefiting from type safety, where types in the method signature are specified in the pointcut. 从类型安全中受益,其中方法签名中的类型是在切入点中指定。 www.infoq.com 3. The pointcut in the example uses a modifier and wildcard pattern to express "all public methods. " 示例中的切入点使用了修饰符(modifier)和通配符(wildcard)模式来表达“所有公共方法”。 www.ibm.com 4. The subaspect below defines a pointcut that captures the join points needing transaction management support. 下面的子方面定义了一个捕获需要事务管理支持的连接点的切入点。 www-128.ibm.com 5. Another type of change might cause a pointcut to start matching in more places than was required. 另外一种变化可能造成切入点在更多地方开始进行匹配,而不是在所要求的地方。 www.ibm.com 6. The first pointcut in the example, called publicMethods, selects all public method executions in the org. apache. cactus package. 示例中的第一个Pointcut称为publicMethods,选择org.apache.cactus包中的所有公用(public)方法的执行。 www.ibm.com 7. Access to the account is provided by a pointcut parameter. 对帐户的访问,由pointcut参数提供。 www.ibm.com 8. But an even more common and time-consuming problem arises from mistakes such as a misspelled type name in a pointcut. 但是,更常见、更费时的问题则是因为在切入点中拼写出错误类型名这类的错误造成的。 www.ibm.com 9. This makes it much easier to work on the advice body and the pointcut concurrently. 这样可以更容易地并发处理通知体和切入点。 www.ibm.com 10. Have the test aspect supply a pointcut that targets your mock target explicitly. 让测试方面提供明确针对mock目标的切点。 www.ibm.com 1. It's also worth noting that the AspectJ pointcut expression language offered in Spring 2. 0 has extremely powerful annotation matching. 同样值得注意的是,Spring2.0中提供的AspectJ切入点表达式语言有非常强大的注解匹配。 www.infoq.com 2. Aspect and pointcut declarations in AspectJ's code style will feel just like Java code. 用AspectJ的代码风格,方面和切入点声明感觉起来就像Java代码。 www.ibm.com 3. Pointcut defines any methods that your classes use that you would like to act upon. 切入点负责定义要处理的类使用的方法。 www-128.ibm.com 4. Because the pointcut binds the first argument, which must be of type String, casting is unnecessary in the advice method. 因为切入点绑定了第一个参数,必须是String类型的参数,在通知方法中做强制转换就没有必要了。 www.infoq.com 5. An advice is executable code for a pointcut. 通知(advice)是切入点的可执行代码。 www.ibm.com 6. First, you could tag elements with annotations so that a pointcut could pick the annotated elements. 首先,可以用注释标记元素,这样,切入点就可以选取注释的元素。 www.ibm.com 7. Less concise aspect and pointcut declarations. 不太简洁的方面和切入点声明。 www-128.ibm.com 8. The method name is used as the name of the pointcut. 方法名被用作切入点的名称。 www.infoq.com 9. In practice, however, you would likely use wildcards to simplify the pointcut definition. 不过在现实中,可能会使用通配符简化切入点的定义。 www.ibm.com 10. Using pointcuts, you can easily define situations in which a timestamped object should have its stamp updated. 使用Pointcut,您可以方便地定义环境,加上时间戳记的对象将在其中更新戳记。 www.ibm.com 1. AOP offers another way to specify an abstraction: as a pointcut specifying a join point. AOP提供了描述抽象的另一种方法:说明连接点的切入点。 www.ibm.com 2. As with the Customer class, adding a step would simplify the pointcut. 与Customer类一样,增加这一步会简化这个切入点。 www.ibm.com 3. Pointcut selects a subset of join points that need lock management. 切入点选择了需要用锁管理的连接点子集。 www-128.ibm.com 4. Class with a participant subaspect that is responsible for defining the pointcut for the embedded class. 类,它负责定义嵌入类的切入点。 www-128.ibm.com 5. AOP programmers call this collection of methods a point cut. AOP程序员称这一套方法为切点(pointcut)。 www.ibm.com 6. Pointcut, which I advise to monitoring JDBC statement execution. 切入点,我建议它去监视JDBC语句的执行。 www-128.ibm.com 7. We declare a pointcut to identify every call to the original service's useService method. 我们说明一个切入点来识别对原始服务的useService方法的每一个调用。 www.ibm.com 8. With 2. 6. 0 we added refactoring support for the p-namespace and for renaming advice and pointcut definitions. 在2.6.0中,我们为p命名空间增加了重构支持,还增加了advice和pointcut定义的重命名支持。 www.infoq.com 9. However, this simply means that you are not testing the real pointcut. 不过,这只是表明测试的不是真正的切点。 www.ibm.com 10. Reuse of pointcut expressions. 切入点表达式的重复使用。 www.infoq.com 1. These pointcuts are used in different combinations by the advice in order to ensure that all methods are traced correctly. 这些Pointcut过去经常被Advice用在不同的联合方式中,为了保证所有的方法都被正确的追踪。 www.ibm.com 2. First, the aspect isn't reusable because the pointcut definition is system specific. 首先,这个方面不是可重用的,因为切入点定义是特定于系统的。 www.ibm.com 3. The first pointcut is used to define a scope for static methods, and the second for non-static. 第一个Pointcut用来定义静态方法的范围,第二个用来定义非静态方法的范围。 www.ibm.com 4. As a result, if a method name changes, a pointcut that should continue matching that method could stop matching. 所以,如果方法名改变,那么本来应当仍然匹配这个方法的切入点可能不再匹配。 www.ibm.com 5. Now any Person defined in the Spring context will be automatically proxied if the pointcut expression matches one or more methods. 如果切入点表达式匹配一个或多个方法,任何定义在Spring上下文中的Person会被自动代理。 www.infoq.com 6. This is similar to using an abstract pointcut, where subaspects must override the pointcut to apply advice. 这与使用一个抽象切点类似,其中子方面必须覆盖切点以使用建议。 www-128.ibm.com 7. A pointcut is a matching rule. 切入点是匹配规则。 www.infoq.com 8. The more mature the pointcut language, the easier it is to write robust pointcuts. 切入点语言越成熟,越容易编写健壮的切入点。 www.ibm.com 9. The pointcut expression says I want to include all method calls in all classes from packages in both the. 层次结构中加入包中的所有类中的所有方法调用。 www-128.ibm.com 10. Looking at Listing 10, you can see that I first define a pointcut for scope to limit advice in 从清单10中可以看到我首先定义了范围的切点,以限定 www-128.ibm.com 1. As an illustrate, I'll rewrite part of our earlier example, putting the pointcut in an AspectJ aspect 作为演示,我会重写我们早先例子的一部分,把切入点放在一个AspectJ切面中 www.infoq.com 2. Looking at Listing 10, you can see that I first define a pointcut for scope to limit advice in 从清单10中可以看到我首先定义了范围的切点,以限定 www-128.ibm.com 3. AspectJ pointcut expression language support, allowing developers to apply cross-cutting security logic across their Spring managed objects AspectJ切入点表达式语言支持,允许开发者在Spring管理的对象上应用横切(cross-cutting)安全逻辑 www.infoq.com 4. Advice invoking authentication for the Account at the join points specified by the pointcut 通知,在切入点指定的连接点上调用Account的认证。 www.ibm.com 5. When you inspect the pointcut using the AJDT's cross-references view, however, you see what's shown in Figure 2 不过,在用AJDT的cross-references视图检查切点时,会看到图2所示的内容 www.ibm.com 6. For example, you could define a more narrow pointcut for monitoring Struts actions in an XML-defined aspect and exclude the standard 例如,可以定义一个更狭窄的切点以监视在一个XML定义的方面中的Struts操作,并排除标准的 www-128.ibm.com 7. Pointcut by simply capturing all the methods that carry an annotation of the 方面的子方面,并通过捕获所有携带类型为 www-128.ibm.com 8. This will produce the following output, showing ORing and ANDing of pointcut expressions 这会产生下面的输出,显示切入点表达式的ORing和ANDing www.infoq.com 9. A pointcut capturing the execution of all public methods on the banking. Account class 一个切入点,捕捉banking.Account类上所有公共方法的执行。 www.ibm.com 10. At the join points specified by the pointcut 在切入点指定的连接点上调用 www-128.ibm.com 1. The advice uses this parameter, and the pointcut binds it using 通知使用这个参数,而切入点则用 www-128.ibm.com 2. Pointcut to match advice executions that return void by using an 切点,通过对建议执行的签名使用一个基于 www-128.ibm.com 3. AspectJ support - support for AspectJ load-time weaving has been added for some environments, there is also a new bean() pointcut 对AspectJ的支持——在一些环境下,增加了对AspectJ的装载时编织支持,同时提供了一个新的bean切入点。 www.infoq.com 4. You define advice relative to a pointcut, saying something like "run this code after every method call I want to log. " Hence the advice 相对于Pointcut来定义Advice,说类似于“在想要记录的每个方法调用之后运行这些代码”这样的话。 www.ibm.com 5. Writing a pointcut to match them is simple, as Listing 7 shows 编写与它们匹配的切入点很简单,如清单7所示 www-128.ibm.com 6. For example, a pointcut could select all the methods carrying an annotation of type 例如,一个切入点可以选择所有携带类型为 www-128.ibm.com |
||||||||||||||
随便看 |
|
英汉双解词典包含2704715条英汉词条,基本涵盖了全部常用单词的翻译及用法,是英语学习的有利工具。