java.lang.Object
io.jooby.run.JoobyRunOptions
Jooby run options. Group available option for jooby:run which are exposes via Maven and Gradle
plugins.
- Since:
- 2.0.0
- Author:
- edgar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList of file extensions that trigger a compilation request.Main class to run.getPort()Application port.Project name.List of file extensions that trigger an application restart.How long to wait after last file change to restart.booleanisCompileExtension(Path path) Test if the given path matches a compile extension.booleanisRestartExtension(Path path) Test if the given path matches a restart extension.booleanvoidsetCompileExtensions(List<String> compileExtensions) Set compile extensions.voidsetMainClass(String mainClass) Set main class name.voidSet application port.voidsetProjectName(String projectName) Set project name.voidsetRestartExtensions(List<String> restartExtensions) Set restart extensions.voidsetUseSingleClassLoader(boolean useSingleClassLoader) voidsetWaitTimeBeforeRestart(Long waitTimeBeforeRestart) Set wait time before restart on file change.toString()
-
Constructor Details
-
JoobyRunOptions
public JoobyRunOptions()
-
-
Method Details
-
getProjectName
Project name.- Returns:
- Project name.
-
setProjectName
Set project name.- Parameters:
projectName- Project name.
-
getMainClass
Main class to run.- Returns:
- Main class (one with main method).
-
setMainClass
Set main class name.- Parameters:
mainClass- Main class name.
-
getPort
Application port.- Returns:
- Application port.
-
setPort
Set application port.- Parameters:
port- Application port.
-
isUseSingleClassLoader
public boolean isUseSingleClassLoader() -
setUseSingleClassLoader
public void setUseSingleClassLoader(boolean useSingleClassLoader) -
getWaitTimeBeforeRestart
How long to wait after last file change to restart. Default is:500milliseconds.- Returns:
- Wait time in milliseconds.
-
setWaitTimeBeforeRestart
Set wait time before restart on file change.- Parameters:
waitTimeBeforeRestart- the time in milliseconds.
-
getRestartExtensions
List of file extensions that trigger an application restart. Default is:conf,propertiesandclass.- Returns:
- Restart extensions.
-
setRestartExtensions
Set restart extensions. Extension is expected to be specify without.(dot).- Parameters:
restartExtensions- Restart extensions.
-
getCompileExtensions
List of file extensions that trigger a compilation request. Compilation is done via Maven or Gradle. Default is:javaandkt.- Returns:
- Compile extensions.
-
setCompileExtensions
Set compile extensions. Extension is expected to be specify without.(dot).- Parameters:
compileExtensions- Compile extensions.
-
isCompileExtension
Test if the given path matches a compile extension.- Parameters:
path- File.- Returns:
- Test if the given path matches a compile extension.
-
isRestartExtension
Test if the given path matches a restart extension.- Parameters:
path- File.- Returns:
- Test if the given path matches a restart extension.
-
toString
-