Package com.lpvs

Class LicensePreValidationService

java.lang.Object
com.lpvs.LicensePreValidationService

@SpringBootApplication(scanBasePackages="com.lpvs") @EnableAutoConfiguration @EnableAsync public class LicensePreValidationService extends Object
The main class for the License Pre-Validation Service (LPVS) application. This class configures and launches the LPVS Spring Boot application.
  • Constructor Details

    • LicensePreValidationService

      public LicensePreValidationService(@Value("${lpvs.cores:8}") int corePoolSize)
      Constructs a new LicensePreValidationService with the specified core pool size.
      Parameters:
      corePoolSize - The core pool size for the asynchronous task executor.
  • Method Details

    • main

      public static void main(String[] args)
      The main entry point of the LPVS application.
      Parameters:
      args - The command-line arguments passed to the application.
    • getAsyncExecutor

      @Bean("threadPoolTaskExecutor") public org.springframework.core.task.TaskExecutor getAsyncExecutor()
      Configures and retrieves an asynchronous task executor bean.
      Returns:
      An asynchronous task executor bean.