Class JettyForkedChild

  • All Implemented Interfaces:
    LifeCycle

    public class JettyForkedChild
    extends AbstractLifeCycle
    JettyForkedChild This is the class that is executed when the jetty maven plugin forks a process when DeploymentMode=FORKED.
    • Field Detail

      • tokenFile

        protected java.io.File tokenFile
      • webAppPropsFile

        protected java.io.File webAppPropsFile
    • Constructor Detail

      • JettyForkedChild

        public JettyForkedChild​(java.lang.String[] args)
                         throws java.lang.Exception
        Parameters:
        args - arguments that were passed to main
        Throws:
        java.lang.Exception
    • Method Detail

      • configure

        public void configure​(java.lang.String[] args)
                       throws java.lang.Exception
        Based on the args passed to the program, configure jetty.
        Parameters:
        args - args that were passed to the program.
        Throws:
        java.lang.Exception
      • doStart

        public void doStart()
                     throws java.lang.Exception
        Start a jetty instance and webapp. This thread will wait until jetty exits.
        Overrides:
        doStart in class AbstractLifeCycle
        Throws:
        AbstractLifeCycle.StopException - If thrown, the lifecycle will immediately be stopped.
        java.lang.Exception - If there was a problem starting. Will cause a transition to FAILED state
      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception