将factors的初始化代码移到构造函数中。
Move the initialization code for factors to the constructor.
清单1显示了数据库的MySQL的初始化代码。
Listing 1 shows the MySQL initialization code for the database.
第一个块包括数据存储和视图的初始化代码,如清单2所示。
The first block contains the initialization code for the data storage and the view, as shown in Listing 2.
为什么是NES初始化代码这样(6502集)?
清单7中的Emacs初始化代码片段就是负责完成这两个任务。
The fragment of Emacs initialization code in Listing 7 takes care of both of these tasks.
可以定义任意数量的全局装备,因此可以把初始化代码分割为多个部分。
You can define any number of global fixtures, which allows splitting up of initialization code.
如果初始化代码很慢或者需要大量的计算,那么这一特性就显得特别重要。
This may be an especially significant issue if the initialization code is slow or computationally expensive.
使用它,你可以执行任何初始化代码。作用是初始化编辑器的行为。
Using it, you can execute any initial code that makes the initial interaction with the editor.
您不用创建这个过程—该项目模板创建它并将其放入“生成的初始化代码”区域。
You don't create this procedure-the project template creates it and places it in the Generated initialization code region.
如果在文档已打开后启用保护功能,可能无法调试或测试初始化代码。
If you enable protection after the document is opened, initialization code cannot be debugged or tested.
清单2中的初始化代码是一个类的一部分,它使用setter注入进行DI。
The initialization code in Listing 2 is part of a class that uses setter injection for DI.
在生成大量类的大型schema的情况下,该初始化代码通过加载e MF资源来执行。
In the case of a large schema that generates a large number of classes, the initialization code is performed by loading an EMF resource.
在我的《15天jQuery入门教程》中你将一次又一次在例子中看到这段初始化代码。
You’ll see this code used again and again in the examples I give you on 15 Days of jQuery.
在较小的schema情况下(取决于类、属性等的总数的估计),该初始化代码在包类本身中生成。
In case of smaller schema (determined based on the computation of total number of classes, attributes, and so on), the initialization code is generated within the Package class itself.
在这个示例中,我们定义了一个定制工厂,并将一些初始化代码从_ main _块移到了该工厂。
In this case, we define a custom factory and move some of the initialization from the _main_ block to the factory.
ILI9328配夏普玻璃调好的初始化代码,改玻璃颜色偏冷因此整体看上去不是那么鲜艳!
Sharp glass ILI9328 tune with a good initialization code, change the color of glass so the overall look cool is not so bright!
或许是你的一个全局变量的初始化代码里有些问题,或者是一个在你的入口点函数中,申明的变量,导致程序崩溃。
There may be something in the deinitialization code for one of your global variables, or one of the variables declared in your entrypoint function, that is causing the crash.
其它的mocking库需要你在执行前记录期望行为(expectations),而这导致了丑陋的初始化代码。
Other mocking libraries require you to record expectations before execution, which tends to result in ugly setup code.
现在,我们可以在每次测试之前调用reset方法,保证我们在每次测试过程中都会先执行singleton对象的初始化代码。
Now, we can call the reset method to start off each test run to ensure we are going through the initialization code for the singleton object on every test run.
当初始化代码就绪后,我们取得代表talks的成员变量,然后检查泛型信息是否正确:正确! talks是一个List,但是它是一个talk的List。
Once this setup code is ready, we retrieve the field representing the talks, and we check that the generic type information is correct: yes, talks is a List, but a List of talks.
如果该表不存在,则它调用数据库初始化代码ResourcesDatabaseInitializer,该代码在此示例中是初始化数据库的实用程序类。
If the table doesn't exist, it invokes the database initialization code, ResourcesDatabaseInitializer, which in this example is a utility class that initializes the database.
清单3中的代码执行初始化,执行一些工作,如果一切顺利,则事务完成,否则会回滚,并最终会清空资源。
The code in Listing 3 performs initialization, performs some work, completes the transaction if everything was successful, rolls back otherwise, and finally cleans up resources.
第一个时间值是构建第一个反射替代类所花费的时间,这个时间包括装载和初始化框架代码中的类的时间。
The First time value is the time taken for constructing the first reflection replacement class, which includes the time to load and initialize the classes in the framework code.
下面的代码片段初始化到一个CM库服务器的一个连接。
The following code snippet initializes a connection to a CM library server.
通过以初始值创建属性来利用代码的信息,逆向工程保持了联系的初始化。
Reverse engineering preserves initialization of associations by creating attributes with initial values to leverage that information from the code.
您可以替换操作实体、条目操作、状态变更、重要属性以及配置初始化中的代码引用。
You can replace code references in operation bodies, action on entry, action on exit, reaction in state, overridden properties, and configuration initialization.
是的,所有这些代码都是初始化命令行选项的。
Yes, all that code just initialized the command-line options.
延迟初始化的主要缺点是:代码将变得更复杂,因为需要查看是否定义了属性,如果还未定义,则要获取属性值。
The main disadvantage of lazy initialization is that your code becomes more complex because you need to check to see if the attribute has been defined yet and, if not, obtain its value.
接下来的代码初始化到博客服务器的XML - RPC客户端连接。
The subsequent block of code initializes the XML-RPC client connection to the blog server.
必须有一个类来初始化这个变量;代码见清单8。
There must be a class to initialize that variable; the code is shown in Listing 8.
应用推荐