⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commandfactoryimpl.java

📁 以前做的一个j2ee的项目
💻 JAVA
字号:
package gov.gdlt.ssgly.taxcore.taxblh.gzda.service.xmlinterface.impl;
import gov.gdlt.ssgly.taxcore.taxblh.gzda.service.xmlinterface.*;
public class CommandFactoryImpl implements CommandFactory{
        private static CommandFactoryImpl instance;



        private CommandFactoryImpl(){

        }

        public static CommandFactoryImpl getInstance(){
              if(instance == null)
                  instance = new CommandFactoryImpl();
              return instance;

        }

        public Command createCommand(String id) {

                Command command=null;
                try {
                        command=(Command)ObjectCreator.getObjectFromXml(id);
                } catch (Exception e) {
                        // TODO 自动生成 catch 块
                        e.printStackTrace();
                }

                return command;

        }

}

⌨️ 快捷键说明

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