分解服务查找代码还可以将其重用于其他的EJB引用。
Factoring out the lookup code also lets us reuse it for other EJB references.
您可能希望将键查找代码打包在指定模板中,使代码更加清晰。
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.
业务逻辑代码使用服务定位器避免目录查找代码变得混乱,因此它很容易理解。
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.
列出在集成开发环境(IDE)中切换文档以查找代码行的各种可用方法。
Lists various ways available in the integrated development environment (IDE) to move through documents to find lines of code.
查找代码被打了补丁的函数,就像大海捞针一般,你不知道这个针是什么样子。
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.
这为您提供了一个以可重复的方式一致地查找和修复代码味道的框架。
This gives you a framework for consistently finding and fixing code smells in a repeatable manner.
查看执行查找器方法的代码(只编写了一次!)来结束我的讨论。
I conclude my discussion with a look at the code (written just once!) that executes my finder methods.
要放入垂直方向的单词,需要同时访问所有数组,使用纵横字谜助手代码查找可能匹配的单词。
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.
在本文中,我将讨论如何使用重构技术来查找隐藏在代码库中的未得到充分设计的代码。
In this article, I talk about how to use refactoring to find underutilized design lurking hidden in your code.
如果回调之间存在复杂的交互,请查找并消除冗余代码。
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.
在这个解决方案中,执行查找的代码被返回模仿对象的代码自动替换。
In this solution, the code that performs the lookup is replaced automatically with code that returns a mock object instead.
下面的代码行搜索PATH变量,查找分号。
The line of code below searches the PATH variable looking for a semicolon.
一旦成功地获得正确的客户机语言代码,我们就需要使用固定的语言代码查找翻译文本。
Once we have successfully determined the correct language code for the client currently being served, we need a way of looking up translated text using a fixed language code.
应用推荐