Class DefaultServerFactory

java.lang.Object
io.micronaut.maven.testresources.DefaultServerFactory
All Implemented Interfaces:
io.micronaut.testresources.buildtools.ServerFactory

public class DefaultServerFactory extends Object implements io.micronaut.testresources.buildtools.ServerFactory
Default implementation for ServerFactory.
Since:
4.0.0
Author:
Álvaro Sánchez-Mariscal
  • Constructor Details

    • DefaultServerFactory

      public DefaultServerFactory(org.apache.maven.plugin.logging.Log log, org.apache.maven.toolchain.ToolchainManager toolchainManager, org.apache.maven.execution.MavenSession mavenSession, AtomicBoolean serverStarted, String testResourcesVersion, boolean debugServer)
  • Method Details

    • startServer

      public void startServer(io.micronaut.testresources.buildtools.ServerUtils.ProcessParameters processParameters)
      Specified by:
      startServer in interface io.micronaut.testresources.buildtools.ServerFactory
    • waitFor

      public void waitFor(Duration duration) throws InterruptedException
      Specified by:
      waitFor in interface io.micronaut.testresources.buildtools.ServerFactory
      Throws:
      InterruptedException