| 143 | } |
| 144 | |
| 145 | private static ZapBootstrap createZapBootstrap(CommandLine cmdLineArgs) { |
| 146 | ZapBootstrap bootstrap; |
| 147 | if (cmdLineArgs.isGUI()) { |
| 148 | ZAP.processType = ProcessType.desktop; |
| 149 | bootstrap = new GuiBootstrap(cmdLineArgs); |
| 150 | } else if (cmdLineArgs.isDaemon()) { |
| 151 | ZAP.processType = ProcessType.daemon; |
| 152 | bootstrap = new DaemonBootstrap(cmdLineArgs); |
| 153 | } else { |
| 154 | ZAP.processType = ProcessType.cmdline; |
| 155 | bootstrap = new CommandLineBootstrap(cmdLineArgs); |
| 156 | } |
| 157 | return bootstrap; |
| 158 | } |
| 159 | |
| 160 | public static ProcessType getProcessType() { |
| 161 | return processType; |