Using a static factory method to create a Msg object.
使用静态工厂方法创建一个msg对象。
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接口。
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 first class USES a constructor to initialize the properties, and the second class USES a static factory method.
第一个类使用构造函数初始化属性,第二个类使用静态工厂方法。
应用推荐