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实例。
In the sample code (line 5) I retrieve the (default) document factory used to build the document and store it in an instance variable (m_factory) for use by the modify method.
在样本代码(第5行)中,我检索了用于构建文档的(缺省)文档工厂,并将它存储在一个实例变量(m_factory)中以供modify方法使用。
To create an instance of the Factory Method Pattern, perform the same steps as for the Singleton Pattern.
要创建Factory方法模式的实例,执行同Singleton模式相同的步骤。
The code in Listing 2 takes as input the actual XML instance and USES the parse method of the Factory class of AutomobilePolicyDocument to get an instance of AutomobilePolicyDocument.
清单2的代码接受输入的xml实例,并使用AutomobilePolicyDocumentFactory类的parse方法获得AutomobilePolicyDocument实例。
Create the SecurityManager instance based on the configuration (using Shiro’s Factory concept that represents the Factory Method design pattern).
根据配置创建SecurityManager实例(使用Shiro的工厂概念,它表述了 工厂方法设计模式);
After the new instance is created, the factory provides a method for obtaining a SAX-capable parser.
新实例创建之后,工厂提供一种方法用于获得具有SAX功能的解析器。
Because we'd like our Lists to be generic in the type of element they contain, we'd like our static factory method to take an argument of type variable t and return an instance of List.
因为我们希望List成为其所包含的元素类型的泛型,所以希望静态factory方法带有类型变量t这一参数并返回List的实例。
To begin, the script includes the XML_Query2XML and MDB2 class files, and then initializes an instance of the MDB2 abstraction layer through its factory() method.
首先,脚本包含了 XML_Query2XML和MDB2类文件,然后通过它的factory() 方法初始化了一个 MDB2抽象层实例。
To begin, the script includes the XML_Query2XML and MDB2 class files, and then initializes an instance of the MDB2 abstraction layer through its factory() method.
首先,脚本包含了 XML_Query2XML和MDB2类文件,然后通过它的factory() 方法初始化了一个 MDB2抽象层实例。
应用推荐