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接口。
CreateInstance is a factory method that returns an instance of PeerNetwork with a specified peer name.
createInstance是个工厂(factory)方法,它返回一个带有指定对等点名称的PeerNet work实例。
To create an instance of the Factory Method Pattern, perform the same steps as for the Singleton Pattern.
要创建Factory方法模式的实例,执行同Singleton模式相同的步骤。
应用推荐