The static initializer in Listing 2 shows the registration process for a Customer class that contains two properties: name and salary.
清单 2 中的静态初始化器显示了 Customer 类的注册过程,这个类包含两个属性:name 和 salary。
The wordform_handler class has an initializer and keeps track of the parameter passed in to determine whether to apply XSLT to XML results.
wordform_handler类有一个初始化器,并记录传递的参数,决定是否对XML结果应用XSLT。
We use the EmbeddedDriver for our driver class in the static initializer of the class.
我们将在类的静态初始化器中把 EmbeddedDriver 用于驱动程序类。
应用推荐