package com.aspectran.with.jetty;

import com.aspectran.core.component.bean.ablility.DisposableBean;
import com.aspectran.core.component.bean.ablility.InitializableBean;
import com.aspectran.core.util.logging.Log;
import com.aspectran.core.util.logging.LogFactory;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.util.thread.ThreadPool;

/**
 * <p>Created: 2016. 12. 22.</p>
 */
public class JettyServer extends Server implements InitializableBean, DisposableBean {

    private static final Log log = LogFactory.getLog(JettyServer.class);

    public JettyServer() {
        super();
    }

    public JettyServer(int port) {
        super(port);
    }

    public JettyServer(ThreadPool pool) {
        super(pool);
    }

    @Override
    public void initialize() throws Exception {
        System.setProperty("org.apache.jasper.compiler.disablejsr199", "false");
    }

    @Override
    public void destroy() {
        try {
            stop();
        } catch (Exception e) {
            log.error("JettyServer shutdown failed", e);
        }
    }

}

@@ -551,16 +551,48 @@
 lass);%0A%0A
+    private boolean autoStart;%0A%0A
     publ
@@ -759,32 +759,125 @@
 r(pool);%0A    %7D%0A%0A
+    public void setAutoStart(boolean autoStart) %7B%0A        this.autoStart = autoStart;%0A    %7D%0A%0A
     @Override%0A  
@@ -1002,16 +1002,73 @@
 false%22);
+%0A%0A        if (autoStart) %7B%0A            start();%0A        %7D
 %0A    %7D%0A%0A

Add a property that allows the web server to start automatically during initialization