Package com.lpvs.util

Class LPVSExitHandler

java.lang.Object
com.lpvs.util.LPVSExitHandler

@Component public class LPVSExitHandler extends Object
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

    Constructors
    Constructor
    Description
    LPVSExitHandler(org.springframework.context.ApplicationContext applicationContext)
    Constructs an instance of LPVSExitHandler with the provided application context.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    exit(int exitCode)
    Initiates the application exit process with the specified exit code.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LPVSExitHandler

      @Autowired public LPVSExitHandler(org.springframework.context.ApplicationContext applicationContext)
      Constructs an instance of LPVSExitHandler 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.