LifecycleManagement Type — spring-boot Architecture
Architecture documentation for the LifecycleManagement type/interface in LifecycleManagement.java from the spring-boot codebase.
Entity Profile
Source Code
core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/lifecycle/LifecycleManagement.java lines 27–69
public enum LifecycleManagement {
/**
* Don't start or stop Docker Compose.
*/
NONE(false, false),
/**
* Start Docker Compose if it's not running.
*/
START_ONLY(true, false),
/**
* Start Docker Compose if it's not running and stop it when the JVM exits.
*/
START_AND_STOP(true, true);
private final boolean start;
private final boolean stop;
LifecycleManagement(boolean start, boolean stop) {
this.start = start;
this.stop = stop;
}
/**
* Return whether Docker Compose should be started.
* @return whether Docker Compose should be started
*/
boolean shouldStart() {
return this.start;
}
/**
* Return whether Docker Compose should be stopped.
* @return whether Docker Compose should be stopped
*/
boolean shouldStop() {
return this.stop;
}
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free