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

📄 commandexecutor.java

📁 100多M的J2EE培训内容
💻 JAVA
字号:
/*
 * Created by IntelliJ IDEA.
 * User: Floyd Marinescu
 * Date: Sep 23, 2001
 * Time: 4:38:51 PM
 * To change template for new class use 
 * Code Style | Class Templates options (Tools | IDE Options).
 */
package examples.command;

public class CommandExecutor
{
    private static EJBCommandTarget ejbTarget = new EJBCommandTarget();

    //execute command, overwriting memory reference of the passed in command to that of the new one
    public static Command execute(Command aCommand) throws CommandException
    {

        //at this point, a real implementation would use a properties file
        //to determine which command target (EJB, Local, Corba, etc) to use
        //for this particular command, as well as which deployed CommandServer
        //to use (inorder to run commands in different under different
        //transaction configurations)
        return ejbTarget.executeCommand(aCommand);

    }

}

⌨️ 快捷键说明

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