Package org.springframework.boot
Interface ExitCodeGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ExitCodeGenerator
Interface used to generate an 'exit code' from a running command lineSpringApplication
. Can be used on exceptions as well as directly on beans.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getExitCode()
Returns the exit code that should be returned from the application.
Method Detail
getExitCode
int getExitCode()
Returns the exit code that should be returned from the application.- Returns:
- the exit code.