Package com.lpvs.util
Class LPVSExitHandler
java.lang.Object
com.lpvs.util.LPVSExitHandler
Component class providing an exit handler for the LPVS application.
This class is responsible for gracefully shutting down the Spring application context
and terminating the application with the specified exit code.
-
Constructor Summary
ConstructorsConstructorDescriptionLPVSExitHandler
(org.springframework.context.ApplicationContext applicationContext) Constructs an instance ofLPVSExitHandler
with the provided application context. -
Method Summary
Modifier and TypeMethodDescriptionint
exit
(int exitCode) Initiates the application exit process with the specified exit code.
-
Constructor Details
-
LPVSExitHandler
@Autowired public LPVSExitHandler(org.springframework.context.ApplicationContext applicationContext) Constructs an instance ofLPVSExitHandler
with the provided application context.- Parameters:
applicationContext
- The Spring application context.
-
-
Method Details
-
exit
public int exit(int exitCode) Initiates the application exit process with the specified exit code.- Parameters:
exitCode
- The exit code to be used when terminating the application.- Returns:
- The exit code that was passed as a parameter.
-