从任意位置到类公共组件的接入。
从Palette拖拉一个类到类图中。
Drag and drop a class from the Palette onto the class diagram.
清单11显示了被较好组织到类中的两个方法。
Listing 11 shows two of the methods that are better organized into classes.
DLL模块的功能,并将其绑定到类实例方法。
And bind the DLL module functions to the class instance methods.
它们都是特性,用于映射HTTP请求到类中的方法。
These are attributes, which map HTTP requests to methods in a class.
然后用标准访问器将引用“注入”到类所依赖的对象中。
You then use standard accessors to "inject" references to the objects your classes depend on.
BIEs组成了UBL概念模型,将业务概念组织到类和关联中。
BIEs make up the UBL conceptual model, organizing business concepts into classes and associations.
例如,魔法属性kernel指向内核,它自动被框架注入到类中。
For example, the magic attribute kernel refers to the kernel, which is automatically injected into the class by the framework.
DI使您能够将对象注入到类中,而不是依靠类来创建对象本身。
DI enables you to inject objects into a class, instead of relying on the class to create the object itself.
完成了这一步后,就可以实际生成方法的最终版本,并将它加入到类中。
After that's been done, I can actually generate the finalized version of the method and add it to the class.
我们已经解决了依赖性问题:我们在运行时把依赖性注入到类的构造器之中。
We have resolved our dependency issue: we are going to inject our dependencies into the constructors of our classes at runtime.
从抽象数据类型到类的转变中包括了一个重要的格式差异:引进了变化和命令推理。
The transition from abstract data types to classes involves an important stylistic difference: the introduction of change and imperative reasoning.
但是,如果使用PHPV5 的话,可以将对象类型检查构建到类或方法声明中。
With PHP V5, however, you can build object type checking right into the class or method declaration.
这里,使用枚举可能值得考虑,因为它可以消除对引用类型的需要,并且将值直接存储到类中。
It might be worth considering an enumeration here since it would remove the need for a reference type and store the value directly in the class.
于是就有了这样可笑的事:在我们能够添加方法到类中的时候,这种“简单的检查”是不够的。
Here's the punchline: the moment we can add methods to classes this "simple check" is not enough.
记住客户端传递一个接口id到类工厂对象里,在对象内部我们审核它是不是我们类工厂的接口。
Remember that the client passed an interface id to the class factory object, and in the object we validated whether it was our class factory interface.
这意味着你可以捕捉类里的用户事件,因为你知道这个类是怎么工作的;然后再将其传递到类里进行处理。
This means you can catch the user event in a class that you know works and then pass it through for processing to the class you're developing.
在本节,将展示类常常隐匿其中的几个地点,这些类很可能会出乎意料地冒到类路径中并导致问题的出现。
In this section, I'll show you some of the places you might expect to find classes hiding, that unexpectedly pop into your classpath and cause problems.
Axis提供了一个非常简单的方法:通过将JAR文件加入到类路径环境变量中就可以加入新的提供者。
Axis provides a nice simple way of incorporating new providers simply by adding them as JAR files to the classpath.
这个大于的操作符的时候,是到类的定义里去识别,大于是一个比较的方法,那么让我在这里说仔细一点吧。
When I try and evaluate that expression of greater than, is going to go into the class to say greater than is a comp method.
AOP或者说面向方面编程支持开发人员将代码段“织入”到对象和方法中,而不需要显式地将代码放入到类的源代码中。
AOP or Aspect Oriented Programming allows developers to "weave" code fragments through their object and methods without explicitly placing the code in the class's source.
要实现业务对象与xml字符串之间传输的逻辑,将清单4中的代码复制到类ContactComponentImpl。
To implement the logic to do the transformation between the business object and the XML string, copy the code in Listing 4 to the class ContactComponentImpl.
类初始化器并没有干扰到C的元类,它继承了基类B,并且继承的元类不但不会影响到类初始化器,而且会很好地运行。
The class initializer does not disturb the metaclass of C, which is the one inherited by base B, and the inherited metaclass does not disturb the class initializer, which does its job just fine.
我也意识到类没有书面文字有用,因此,您现在所阅读的是对于如何基于Fastestdba基准的剖析,来调优数据库的探索。
I also realized that classes are not as useful as the written word, so what you are now reading is an exploration of how to tune a database based on a dissection of the Fastest DBA benchmark.
因此,当这个类的一个实例放入到类集合中的任何一个中时,使用的是Object . equals版本的方法,而不是在Bob中定义的版本。
As a result, when one of the instances of this class is put into any of the collection classes, the Object.equals version of the method will be used, not the version defined in Bob.
由于大多数backingbean是为了在特定应用程序中使用而开发的,因此没有理由将这些bean的配置“抽象”到类本身以外的任何文件中。
Because most backing beans are developed for use within a specific application, there is no reason to "abstract" the configuration of these beans into any file other than the class itself.
从复制和粘贴源代码到类层次上的细粒度(fine - grained)复用,再到框架和体系结构层次上的粗粒度(coarse - grained)大规模复用,复用技术已经逐渐成熟。
The technology of reuse has matured from copying and pasting source code, to fine-grained reuse at the class level, to coarse-grained large-scale reuse at the framework and architectural levels.
港口员工们注意到对同一类小船所给出的尺寸经常不同。
Harbour staff noticed that measurements given for the same class of boats often varied.
根类蔬菜被种植到一个花盆中,“土壤”是用麦芽和榛子粉做成的。
Root vegetables are planted in a pot whose "soil" is made of malt and hazelnut flour.
这些行业的规模足够大,可以为每一类工人提供工作,从非技术工人到经理或工程师。
And these industries were large enough to offer jobs to each class of worker, from unskilled laborer to manager or engineer.
应用推荐