The only special part is several convenient static factory methods for manufacturing fields.
唯一的特别之处在于几个方便操纵字段的静态工厂方法。
In this way, the object returned from the static factory method could implement any number of interfaces defined when I create the proxy.
用这种方式,静态工厂方法返回的对象可以实现建立代理时所定义的任意数量的接口。
You can retrieve an MXBean instance from a static factory method that gives you direct access to the locally running JVM's MXBean interface.
您可以从一个静态工厂方法获得一个MXBean实例,该方法可以使您直接访问本地运行的JVM的MXBean接口。
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实例。
In Listing 2, the code first includes the necessary class file for the MDB2_Schema package, and then initializes the MDB2 abstraction layer by calling its static factory method.
在清单2中,代码首先包含了MDB2_Schema包所需的类文件,然后通过调用其静态方法factory以初始化mdb2抽象层。
The first class USES a constructor to initialize the properties, and the second class USES a static factory method.
第一个类使用构造函数初始化属性,第二个类使用静态工厂方法。
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方法但实际上执行不同操作的方法产生混淆。
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方法但实际上执行不同操作的方法产生混淆。
应用推荐