Class CamelVirtualThreadEnvironmentPostProcessor

java.lang.Object
org.apache.camel.spring.boot.CamelVirtualThreadEnvironmentPostProcessor
All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor

public class CamelVirtualThreadEnvironmentPostProcessor extends Object implements org.springframework.boot.env.EnvironmentPostProcessor
Environment post processor that automatically sets the Camel virtual thread system property when Spring Boot virtual threads are enabled. This processor runs very early in the Spring Boot startup process, before any Camel classes are loaded, ensuring that Camel's ThreadType static initialization picks up the correct virtual thread configuration.
  • Constructor Details

    • CamelVirtualThreadEnvironmentPostProcessor

      public CamelVirtualThreadEnvironmentPostProcessor()
  • Method Details

    • postProcessEnvironment

      public void postProcessEnvironment(org.springframework.core.env.ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
      Specified by:
      postProcessEnvironment in interface org.springframework.boot.env.EnvironmentPostProcessor