额外的好处是,该bean的配置接近于代码,因此对继承代码库的新开发人员来说更加透明(甚至对于您这样只学了6个月的人来说也是如此)。
As an added benefit, the configuration of this bean is closer to the code and thus more apparent to a new developer inheriting the code base (or perhaps even to you, six months down the road).
继承新代码时,快速扫描可以发现各种问题,从而避免稍后花费更多时间进行调试。
When you inherit new code, a quick scan can reveal issues that would take much longer to debug later on.
继承允许您在新的类中重用和自定义现有的代码。
Inheritance allows you to reuse and customize existing code inside a new class.
该工具在探究或试图了解新(继承的)代码时极其有用。
This tool is extremely useful when exploring or trying to understand new (inherited) code.
该套件的目标就是展示代码中显露出来的关系(方法调用、继承等等)和运行时出现的关系(对接口或基类的调用)。
The goal for the suite is to show any relationship that is either explicitly in the code (method calls, inheritance, etc) or done so at runtime (calls to interfaces or base classes).
您不需要编写任何特定安全代码(即使在安全环境中),因为这个插件将在WSRR应用程序内部运行,从WSRR继承安全凭据。
You don't need to write any specific code for security, even in a secure environment, because this plug-in runs within the WSRR application and inherits security credentials from WSRR.
因为用户线程构造器中的代码仍然在访问线程的环境下运行,所以在构造用户线程时,我们还有机会从服务线程继承场所对象。
As the code in user thread constructor still runs in the caller thread's context, we have a chance to inherit a locale object from the servlet thread when the user thread is being constructed.
您需要进行代码重构的原因可能有以下几个:传说中的第一个原因是:需要继承为某个古老产品而开发的年代久远的代码,或者突然碰到这些代码。
There are several reasons that you might want to refactor code. The first is the stuff of legend: the hoary old code base for a venerable product is inherited or otherwise mysteriously appears.
通过构建类似的一些实用工具,您会得到更多便利,并且继承了跨平台代码的优越性。
By building a few utilities like these, you can get most of the convenience but retain cross-platform code.
操作类继承的抽象类也已被创建以保存所有的操作类实现所需的共同代码。
An abstract class that our Action classes extend has also been created, to hold common code needed for all our Action class implementations.
类型有两种“用户”:继承类型,以及使用类型实例的代码。
There are two kinds of “users” of a type: derived types and code that works with instances of the type.
TemplateMethod模式建议,应当将公共模板代码移到继承层次结构之上,将算法细节推迟到子类。
The Template Method pattern suggests that I should move common boilerplate code up the inheritance hierarchy, deferring algorithmic details to child classes.
给定的src对象通过查看整个继承树知道它需要调用哪一个代码块。
A given SRC object knows what block of code it needs to call by looking through its inheritance tree.
类ThreadClass继承自threading . thread,也正因为如此,您需要定义一个run方法,以此执行您在该线程中要运行的代码。
The class ThreadClass inherits from threading.Thread and because of this, you need to define a run method that executes the code you run inside of the thread.
保留索引、借助include使用热加载和在某些地方使用多态关联代替继承是三种可用来改进代码库的方法。
Keeping up with your indexes, using eager loading with include, and using polymorphic associations in places instead of inheritance are just three ways you can use to improve your code base.
可以用编程方案(例如继承)和定制挂钩(例如Visualbasic脚本)编写扩展应用程序的新代码。
You can use programming idioms (such as inheritance) and customization hooks (such as Visual Basic scripts) to write new code extending the application.
在本例中,此段代码声明了base dijit . _ Widget和dijit . _ Templated的继承。
In this case, the code declares inheritance from base dijit._Widget and dijit._Templated.
文件equation . pm包含从Persistent:dbi类继承所需的所有代码。
The file Equation.pm contains all the code necessary to inherit from a Persistent: : DBI class.
因而代码的修改相当少,尽管需要同时从nautilus.ColumnProvider和nautilus.InfoProvider继承。
The modifications to the code are fairly minor, although you do need to inherit from both nautilus.ColumnProvider and nautilus.InfoProvider.
我们讨论了如何使用模板继承来向servlet代码透明的添加行为(比如启动和提交全局事务)。
We discussed how template inheritance can be used to add behaviors (like starting and committing a global transaction) transparently to the servlet code.
下面一部分代码是实际的测试类(继承了上面的CustomerManagerContext类),实现了一些辅助方法和测试方法。
The next section of code is where the actual test class (derived from our CustomerManagerContext above) implements the auxiliary and test methods.
要重用面向对象的代码,您要将目标代码提取(extract)到另一个类中,然后再用继承来访问它。
To reuse object-oriented code, you extract the target code into another class, then use inheritance to access it.
代码直接继承自Release 1.0,体系结构中的某些部分仍然支持 Release 1.0 客户机。
The Release 5 code was a direct descendent of Release 1.0 and parts of its architecture still supported Release 1.0 clients.
清单2显示了这个继承树(为了清晰起见,删除了实例计数器和构造函数代码)。
Listing 2 shows the inheritance tree (with the instance counter and constructor code removed for clarity).
在后来到了更新或升级继承来的应用程序代码的时候,这些测试案例也是有帮助的。
These test cases will also be helpful later on when the time comes to update or upgrade the inherited application code.
您放置的每个代码都会被扩展您的超级助手的助手类所继承。
Any code that you put there will be inherited by every helper class that extends your super helper.
遗憾的是,彻底放弃私有继承和多重继承会使我们在代码重用方面付出昂贵的代价。
Unfortunately, tossing out private and multiple inheritance has cost us dearly in terms of code reuse.
编写新扩展的代码涉及继承来自特定基本类的信息。
Coding a new extension involves inheriting needed information from the specified base classes.
这些代码表明div选择器继承了一个属性,以将文本居中。
The code says that the div selector inherits a property to center the text.
继承有助于代码重用,因为你可以对基类的行为进行定制而不用去修改基类本身。
Inheritance can facilitate code reuse, since you can customize the behavior of parent classes without having to modify them.
应用推荐