Using private constructors for factory methods?
使用私有构造函数的工厂方法?
Listing 2: Using factory methods in the method parameter.
清单2:在方法参数中使用工厂方法。
A quotas instance must be given to the dictionary reader factory methods.
必须为字典读取器工厂方法指定配额实例。
You can instantiate a CipherService directly - no strange or confusing factory methods.
你可以直接实例化一个CipherService-没有奇怪或让人混乱的工厂方法;
This factory is going to become a huge spiderweb of interdependent factory methods!
这个工厂类将变成由相互依赖的工厂方法构成的巨型蜘蛛网。
The only special part is several convenient static factory methods for manufacturing fields.
唯一的特别之处在于几个方便操纵字段的静态工厂方法。
Creator classes are used to define factory methods that create instances of the product objects.
Creator类用于定义创建产品对象实例的Factory方法。
The various composite file artifacts are inspected, and factory methods help instantiate the various objects in memory.
对各个复合文件工件进行检查,然后使用工厂方法在内存中实例化不同对象。
This problem could be overcome by allowing static registration of specific factory methods and classes for specific types.
通过允许特定类型的特定factory方法和类的静态注册,可以克服这个问题。
There are three ways for client code to access MXBeans: through factory methods, through the platform server, or as proxies.
客户机代码访问MXBean有三种方式:通过工厂方法、通过平台服务器或作为代理。
It can also use constructors or factory methods, but most examples you'll see — and the Spring code base itself — focus on setters.
它也使用构造函数和工厂方法,但您会看到的大多数示例和Spring代码基本身还是使用setter。
In XAML 2009 we see full support for generics, non-default constructors, factory methods, built-in types, and defining new properties.
XAML 2009将完全支持泛型、非默认构造方法、工厂方法、内建类型并且可以定义新的属性。
For those MXBean types where multiple instances of the MXBean may exist, there are factory methods that return the MXBeans in a List, as shown in Listing 2.
对于可能存在多个MXBean实例的那些MXBean类型来说,存在着工厂方法,可以在List中返回MXBean,如清单2所示。
The BOSession class offers static factory methods to create an instance of this class which encapsulates a Notes Session instance used to access the Notes database.
bosession类提供创建该类的实例的静态工厂方法,封装用来访问Notes数据库的NotesSession实例。
The heuristic for identifying static factory methods is somewhat basic and could be confused by a method that looks like a factory method but actually performs a different operation.
用于识别静态factory方法的启发法还比较基本,可能会与看上去像是factory方法但实际上执行不同操作的方法产生混淆。
Note: Yes, these method names are capitalized; if I had to guess, I'd say it's probably because they're factory methods - they instantiate and return Field objects with particular parameters.
注意:是的,这些方法名大写首字母;如果我非得猜的话,我会说它可能是因为他们是工厂方法——它们初始化并返回带特定参数的Field对象。
These are not as common as instance methods, but you will often see class methods that are factory methods for creating new instances of the class; this saves you from having to alloc and initialize.
它们不像实例方法那样常见,但您将会经常看到一些类方法,它们作为创建新的类实例的工厂方法;这免得您必须进行分配和初始化。
Furthermore, in the effort to feed the hosts of people on this planet, the focus on factory and intensive farming methods is being cited as a key factor in climate change.
此外,为了养活地球上的大量人口,人们对工厂化和集约化的耕作方法的集中被认为是气候变化的关键因素。
This manipulation of attached methods could also be wrapped in a function factory as before, deferring the final decision until runtime.
这种对附加方法的操作也可以像之前一样打包到一个函数工厂中,这将使最终决策延迟到运行时。
The factory interface includes methods to build a document from various sources directly, and includes methods for creating individual components of the XML document representation.
这个工厂接口包括用于从各种来源直接构建文档的方法、用于创建XML 文档表示的不同部分的方法。
A vendor-defined factory class will expose methods that allow the programmer to set the connection parameters.
供应商定义的工厂类将提供方法以允许程序员设置连接参数。
The manufacturing methods Shi used to get the company off the ground can still be seen in the factory, which is accessible through doors at the back of the headquarters building.
施正荣过去采用的成功的制造方法在仍然在工厂里应用,通过公司总部大楼的后门可以到达工厂。
To change the behavior of the Factory class, you simply subclass FactoryImpl and override its non-static methods.
要更改Factory类的行为,只要子类化Factory Impl并覆盖其非静态方法。
Also, all the generated interfaces have a factory class that contains static methods such as.
此外,所有生成的接口都有一个包含静态方法的工厂类,比如。
In the WSRF Custom Operations menu, you can experiment with the factory and service methods (see figure 2).
在WSRF CustomOperations菜单中,您可以尝试工厂和服务方法(参见图2)。
The connection factory's constructor is parameterless, so the factory has mutator methods that can be invoked to control the properties of the connection the factory will supply.
连接工厂的构造器是无参数的,因此工厂有变异方法可以被调用,以控制工厂将提供的连接的特性。
The static methods in the Factory class will then call the instance methods of your factory instance.
然后,Factory类中的静态方法会调用您工厂实例的实例方法。
The other way to obtain a data factory is to create it yourself, and use the AddType and AddPropertyToType methods to define the model, just as the DASes would.
得到数据工厂的另外一种方法是自行创建,使用AddType和AddPropertyToType方法来定义模型——就像DAS做的那样。
The other way to obtain a data factory is to create it yourself, and use the AddType and AddPropertyToType methods to define the model, just as the DASes would.
得到数据工厂的另外一种方法是自行创建,使用AddType和AddPropertyToType方法来定义模型——就像DAS做的那样。
应用推荐