?? jetty.java
字號:
package org.jpos.q2.jetty;import org.jpos.q2.QBeanSupport;import org.mortbay.jetty.Server;/** * @author Alejandro Revilla * @version $Revision: 1.1 $ $Date: 2003/08/07 18:55:52 $ * @jmx:mbean description="Jetty QBean" extends="org.jpos.q2.QBeanSupportMBean" */public class Jetty extends QBeanSupport implements JettyMBean { Server server; String config; public void initService () throws Exception { server = new Server(config); } public void startService () throws Exception { server.start (); } public void stopService () throws Exception { server.stop (); } /** * @jmx:managed-attribute description="Configuration File" */ public void setConfig (String config) { this.config = config; } /** * @jmx:managed-attribute description="Configuration File" */ public String getConfig () { return config; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -