slidefactory.java

来自「openwave公司的用于彩信开发的MM7协议实现java原代码,决对超值.」· Java 代码 · 共 40 行

JAVA
40
字号
// EDITOR NOTE: Please set number of columns to 100 in ur editor.package com.openwave.mms.content;/** * This class creates concrete implementation objects for the  * <code>Slide</code> interface. */public class SlideFactory {    /**     * Private constructor to make sure that no one else can create instances     * of this class. This class must be a singleton and clients should get     * instances by calling the static getInstance method.     */    private SlideFactory() {    }    /**     * Returns an instance of this class.     *     * @return An instance of this class.     */    public static SlideFactory getInstance() {        return factory;    }    /**     * Obtains a reference to a concrete implementation of the     * <code>Slide</code> interface.     */    public Slide newSlide() {        return new SlideImpl();    }    private static SlideFactory factory = new SlideFactory();}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?