Package io.micronaut.maven.testresources
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 Summary
ConstructorDescriptionDefaultServerFactory
(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, boolean foreground) -
Method Summary
Modifier and TypeMethodDescriptionvoid
startServer
(io.micronaut.testresources.buildtools.ServerUtils.ProcessParameters processParameters) void
-
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, boolean foreground)
-
-
Method Details
-
startServer
public void startServer(io.micronaut.testresources.buildtools.ServerUtils.ProcessParameters processParameters) - Specified by:
startServer
in interfaceio.micronaut.testresources.buildtools.ServerFactory
-
waitFor
- Specified by:
waitFor
in interfaceio.micronaut.testresources.buildtools.ServerFactory
- Throws:
InterruptedException
-