分解服务查找代码还可以将其重用于其他的EJB引用。
Factoring out the lookup code also lets us reuse it for other EJB references.
这段查找代码类似于会话或实体bean 中的代码。
This lookup code is similar to code that's in the session or entity beans.
您可能希望将键查找代码打包在指定模板中,使代码更加清晰。
You might try to clean up this code a bit by packaging the key lookup code in a named template.
可以从第一个模板中看到更简洁xpath语法是如何简化查找代码。
You can see from the first template how the briefer XPath function syntax simplifies the code requesting the lookup.
必须将这种分解后的常用查找代码复制到使用这种模式的每个客户端上。
The common lookup code that we factored must be duplicated in every client where we want to use this pattern.
下一个实例较第一种方法稍做改进,将常用的查找代码分解成单独的方法。
The next example introduces a slight improvement over the first method, in that we factor out the common lookup code into a separate method.
可以利用向导驱动来添加必要的查找代码,这些代码一般难于记忆。
Wizard-driven approach to add the necessary lookup code, which can be hard to remember.
业务逻辑代码使用服务定位器避免目录查找代码变得混乱,因此它很容易理解。
Business logic code that USES a service locator avoids becoming cluttered with directory lookup code, and so is easier to understand.
FindBugs就是一个能够查找代码中可能的缺陷模式的开源静态分析工具。
FindBugs is an open source static analysis tool that looks for likely bug patterns in code.
XML文件中的Location元素将告诉XML配置工具到哪里查找代码转换器。
The Location element in the XML file will tell the XML Configuration tool where to find the transcoder.
查找代码被打了补丁的函数,就像大海捞针一般,你不知道这个针是什么样子。
Finding a function that has had its code patched is like looking for a needle in a haystack, except that you don't know what the needle looks like.
宿主控制运行时从何处查找代码,以代表宿主将代码加载到特定的应用程序域中。
The host controls where the runtime finds code to load into a particular application domain on its behalf.
“查找和替换”窗口、“书签”、“任务列表”和“错误列表”查找代码行的过程。
Find and Replace window, Bookmarks, and the Task List and Error List to locate lines of code.
它查找代码路径将会或者可能造成null指针异常的情况,它还查找对null的冗余比较的情况。
It looks for cases where a code path will or could cause a null pointer exception, and it also looks for cases in which there is a redundant comparison to null.
但是FindBugs不同,它利用字节码分析和很多内置的bug模式检测器来查找代码中的常见bug。
But FindBugs is different — it USES bytecode analysis and a host of plug-in bug pattern detectors to find common bugs in code.
这使得开发人员不用经常编写毫无意义的注册表查找代码,例如JMXAPI要求编写的那些代码。
This frees the developer from having to constantly write meaningless registry lookup code, such as that enforced by the JMX API.
RubyDevelopmentTools (RDT)插件的名称及查找代码的位置已经发生变化,但是基本函数和许可条款在本质上保留不变。
The name of the Ruby Development Tools (RDT) plug-in and where to find the code have changed, but the basic function and licensing terms have remained essentially unchanged.
下一节将介绍如何在代码中查找这些对象。
The next section covers how to look up these objects in code.
这为您提供了一个以可重复的方式一致地查找和修复代码味道的框架。
This gives you a framework for consistently finding and fixing code smells in a repeatable manner.
接下来,将了解如何在代码中查找这些对象。
要放入垂直方向的单词,需要同时访问所有数组,使用纵横字谜助手代码查找可能匹配的单词。
To put in the vertical words, you need to walk all the arrays simultaneously, using the crossword helper code to look for possible matching words.
具体来说,要在测试套件中查找在正常代码中不会出现的问题。
In particular, look for issues in the test suite that don't arise in normal code.
去掉查找的代码应该听起来很熟悉:这是对被通知的类型的依赖有效的注入!
Getting rid of the lookup code should sound familiar: this is effectively injection of the dependency on the type being advised!
除了最明显的复制-粘贴违规之外,在所有地方手工查找重复代码也非常具有挑战性。
Finding duplicate code manually can be quite challenging in all but the most obvious copy-and-paste violations.
如果回调之间存在复杂的交互,请查找并消除冗余代码。
If there is a complex interaction between callbacks, look for redundant codes and simplify them.
EJB没有使用JNDI查找,而是通过注入代码定义一个资源引用。
Instead of using JNDI lookups, an EJB can define a resource reference by injecting code.
我开始上网查找信息和代码。
接下来就让我们实际应用一下零拷贝,在客户机和服务器间传输文件(参见下载,查找示例代码)。
Now let's put zero copy into practice, using the same example of transferring a file between a client and a server (see Download for the sample code).
上述代码会查找浏览器的地理定位功能。
The code above checks for the geolocation capability of the browser.
上述代码会查找浏览器的地理定位功能。
The code above checks for the geolocation capability of the browser.
应用推荐